]> 4ch.mooo.com Git - 16.git/blobdiff - 16/tweak16/DETECT.HPP
refresh wwww
[16.git] / 16 / tweak16 / DETECT.HPP
diff --git a/16/tweak16/DETECT.HPP b/16/tweak16/DETECT.HPP
new file mode 100755 (executable)
index 0000000..a26aed9
--- /dev/null
@@ -0,0 +1,29 @@
+#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