diff --git a/src/wndproc.c b/src/wndproc.c index 8ea8ba5b2d..a551991914 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -614,8 +614,8 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam { if (g_ddraw.renderer != d3d9_render_main || g_config.nonexclusive) { - ChangeDisplaySettings(&g_ddraw.render.mode, CDS_FULLSCREEN); real_ShowWindow(g_ddraw.hwnd, SW_RESTORE); + ChangeDisplaySettings(&g_ddraw.render.mode, CDS_FULLSCREEN); mouse_lock(); } }