--- /dev/null
+#ifndef _DETECT_HPP\r
+#define _DETECT_HPP\r
+\r
+#include "misc.hpp"\r
+#include "regtable.hpp"\r
+#include "vgalib.hpp"\r
+\r
+\r
+struct ModeInfo\r
+ {\r
+ enum EmulType { EM_CONFLICT, HERC, CGA, VGA };\r
+ enum ColorsType { COLOR2=2, COLOR4=4, COLOR16=16, COLOR256=256 };\r
+ enum AGType { AG_CONFLICT, ALPHA, GRAPHICS };\r
+\r
+ EmulType emulation;\r
+ AGType alphaGraph;\r
+ ColorsType colors;\r
+ int hClocks, vClocks, xres, yres, lineClocks, spareClocks, adrOffset,\r
+ hPixelsPerClock, vxres, vyres, vxresBytes;\r
+ float xpages, ypages;\r
+ Boolean countBy2, chain4;\r
+\r
+ ModeInfo(RegisterTable &rt) { detectFrom(rt); }\r
+ void detectFrom(RegisterTable &);\r
+ GraphicsAPI *getGraphicsAPI();\r
+ void show();\r
+ };\r
+\r
+#endif
\ No newline at end of file