Fixed triple buffer and mode switching

This commit is contained in:
pagefault
2001-06-01 02:08:47 +00:00
parent 1e4c887933
commit efa6f37887

View File

@@ -1128,12 +1128,9 @@ int InitDirectDraw()
ReleaseDirectDraw(); ReleaseDirectDraw();
if(FullScreen == 0) GetClientRect(hMainWindow, &rcWindow);
{ ClientToScreen(hMainWindow, ( LPPOINT )&rcWindow);
GetClientRect(hMainWindow, &rcWindow ); ClientToScreen(hMainWindow, ( LPPOINT )&rcWindow + 1);
ClientToScreen(hMainWindow, ( LPPOINT )&rcWindow );
ClientToScreen(hMainWindow, ( LPPOINT )&rcWindow + 1 );
}
if(DirectDrawCreateEx(NULL, (void **)&lpDD, IID_IDirectDraw7, NULL) != DD_OK) if(DirectDrawCreateEx(NULL, (void **)&lpDD, IID_IDirectDraw7, NULL) != DD_OK)
{ {