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

some more wine tweaks to improve performance on minimize

This commit is contained in:
FunkyFr3sh 2018-11-05 14:16:30 +01:00
parent e59043f43f
commit 14ea479797

View File

@ -876,7 +876,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
WindowRect.right = LOWORD(lParam);
WindowRect.bottom = HIWORD(lParam);
ddraw_SetDisplayMode(ddraw, ddraw->width, ddraw->height, ddraw->bpp);
if (WindowRect.right != ddraw->render.width || WindowRect.bottom != ddraw->render.height)
ddraw_SetDisplayMode(ddraw, ddraw->width, ddraw->height, ddraw->bpp);
}
}
}