static void\r
vgaSetMode(byte mode)\r
{\r
- int10_setmode(mode);\r
+ union REGS regs;\r
+\r
+ regs.h.ah = SET_MODE;\r
+ regs.h.al = mode;\r
+ int86(VIDEO_INT, ®s, ®s);\r
+ //int10_setmode(mode);\r
}\r
\r
//---------------------------------------------------\r
\r
vgaSetMode(VGA_256_COLOR_MODE);\r
vga_enable_256color_modex();\r
- /* reprogram the CRT controller */\r
-// outp(CRTC_INDEX, 0x11); /* VSync End reg contains register write prot */\r
-// outp(CRTC_DATA, 0x7f); /* get current write protect on varios regs */\r
+\r
update_state_from_vga();\r
vga_read_crtc_mode(&cm);\r
\r
+ /* reprogram the CRT controller */\r
+ outp(CRTC_INDEX, 0x11); /* VSync End reg contains register write prot */\r
+ outp(CRTC_DATA, 0x7f); /* get current write protect on varios regs */\r
+\r
switch(vq)\r
{\r
case 1:\r