1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

#138 call SetDisplayMode from SetCooperativeLevel when there's no DDSCL_FULLSCREEN flag

(cherry picked from commit 90591ac8286c20cecfada08d102787943cf9f515)
This commit is contained in:
FunkyFr3sh 2022-01-24 01:35:11 +01:00
parent 9c02e0ee93
commit 8409769b73

View File

@ -849,6 +849,11 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
}
}
if (!(dwFlags & DDSCL_FULLSCREEN))
{
dd_SetDisplayMode(640, 480, 8, SDM_MODE_SET_BY_GAME);
}
return DD_OK;
}