]> 4ch.mooo.com Git - 16.git/blob - 16/tweak16/DETECT.HPP
cleaned up the repo from debugging watcom2 ^^
[16.git] / 16 / tweak16 / DETECT.HPP
1 #ifndef _DETECT_HPP\r
2 #define _DETECT_HPP\r
3 \r
4 #include "misc.hpp"\r
5 #include "regtable.hpp"\r
6 #include "vgalib.hpp"\r
7 \r
8 \r
9 struct ModeInfo\r
10         {\r
11         enum EmulType { EM_CONFLICT, HERC, CGA, VGA };\r
12         enum ColorsType { COLOR2=2, COLOR4=4, COLOR16=16, COLOR256=256 };\r
13         enum AGType { AG_CONFLICT, ALPHA, GRAPHICS };\r
14 \r
15         EmulType emulation;\r
16         AGType alphaGraph;\r
17         ColorsType colors;\r
18         int hClocks, vClocks, xres, yres, lineClocks, spareClocks, adrOffset,\r
19                 hPixelsPerClock, vxres, vyres, vxresBytes;\r
20         float xpages, ypages;\r
21         Boolean countBy2, chain4;\r
22 \r
23         ModeInfo(RegisterTable &rt)                     { detectFrom(rt); }\r
24         void detectFrom(RegisterTable &);\r
25         GraphicsAPI *getGraphicsAPI();\r
26         void show();\r
27         };\r
28 \r
29 #endif