]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16.c
stack overflow issue with sprite compiling... wwww
[16.git] / src / lib / modex16.c
index a2152825ee9638110111f011c051bdc1ff646a99..42d4f6c8be8bd193845ae388e26e42403ba6cd5d 100755 (executable)
@@ -70,7 +70,7 @@ vgaSetMode(byte mode)
 // Use the bios to get the current video mode\r
 //\r
 \r
-long/*FIXME: why long? "long" is 32-bit datatype, VGA modes are 8-bit numbers. */\r
+byte/*FIXME: why long? "long" is 32-bit datatype, VGA modes are 8-bit numbers. */\r
 vgaGetMode()\r
 {\r
     return int10_getmode();\r
@@ -80,7 +80,7 @@ vgaGetMode()
 void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv)\r
 {\r
        word i;\r
-       dword far*ptr=(dword far*)VGA;      /* used for faster screen clearing */\r
+       dword far*ptr=(dword far*)vga_state.vga_graphics_ram;//VGA;      /* used for faster screen clearing */\r
        struct vga_mode_params cm;\r
        int CRTParmCount;\r
 \r