1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-26 10:29:23 +01:00

minimize window in RestoreDisplayMode

This commit is contained in:
FunkyFr3sh 2018-07-07 02:43:42 +02:00
parent 30b430dbc7
commit e4254f7f22

View File

@ -232,6 +232,8 @@ HRESULT __stdcall ddraw_RestoreDisplayMode(IDirectDrawImpl *This)
This->render.thread = NULL; This->render.thread = NULL;
} }
ShowWindow(This->hWnd, SW_MINIMIZE);
if(!ddraw->windowed) if(!ddraw->windowed)
{ {
ChangeDisplaySettings(&This->mode, 0); ChangeDisplaySettings(&This->mode, 0);