Synchronize Unlock and Blt with drawing loop, force loop to constant 60 FPS, fixes too fast scrolling (its still fast)

This commit is contained in:
Toni Spets 2010-10-27 21:03:09 +03:00
parent 9606f1b54f
commit b6f989eeee
5 changed files with 32 additions and 30 deletions

1
main.h
View file

@ -38,6 +38,7 @@ typedef struct IDirectDrawImpl
DWORD bpp;
DWORD freq;
BOOL windowed;
CRITICAL_SECTION cs;
HWND hWnd;
LRESULT CALLBACK (*WndProc)(HWND, UINT, WPARAM, LPARAM);