mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-26 18:39:22 +01:00
#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
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;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user