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:
parent
9606f1b54f
commit
b6f989eeee
5 changed files with 32 additions and 30 deletions
1
main.h
1
main.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue