#138 call SetDisplayMode from SetCooperativeLevel when there's no DDSCL_FULLSCREEN flag
(cherry picked from commit 90591ac8286c20cecfada08d102787943cf9f515)
This commit is contained in:
parent
9c02e0ee93
commit
8409769b73
1 changed files with 5 additions and 0 deletions
5
src/dd.c
5
src/dd.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue