diff --git a/graphics/vga.c b/graphics/vga.c index 9e4801fd0b6..be4730d6e20 100644 --- a/graphics/vga.c +++ b/graphics/vga.c @@ -21,7 +21,7 @@ static IDirectDrawPalette *lpddpal; static DDSURFACEDESC sdesc; static WORD poll_timer; static CRITICAL_SECTION vga_crit; -static int vga_polling; +static int vga_polling,vga_refresh; int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth) { @@ -47,6 +47,7 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth) lpddraw=NULL; return 1; } + vga_refresh=0; InitializeCriticalSection(&vga_crit); /* poll every 20ms (50fps should provide adequate responsiveness) */ poll_timer = CreateSystemTimer( 20, (FARPROC16)VGA_Poll ); @@ -141,6 +142,7 @@ void VGA_Poll(void) for (X=0; X