Enabled vsync in windowed modes

This commit is contained in:
pagefault
2001-05-28 15:33:29 +00:00
parent 526d94f020
commit 59f03272f1

View File

@@ -151,7 +151,7 @@ extern "C" BYTE vsyncon;
void DrawScreen() void DrawScreen()
{ {
if(DD_CFB==NULL) return; if(DD_CFB==NULL) return;
if (vsyncon == 1 && FullScreen == 1) if (vsyncon == 1)
{ {
if (lpDD->WaitForVerticalBlank(DDWAITVB_BLOCKBEGIN, NULL) != DD_OK) if (lpDD->WaitForVerticalBlank(DDWAITVB_BLOCKBEGIN, NULL) != DD_OK)
{ {