some more wine tweaks to improve performance on minimize
This commit is contained in:
parent
e59043f43f
commit
14ea479797
1 changed files with 2 additions and 1 deletions
|
@ -876,6 +876,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
WindowRect.right = LOWORD(lParam);
|
WindowRect.right = LOWORD(lParam);
|
||||||
WindowRect.bottom = HIWORD(lParam);
|
WindowRect.bottom = HIWORD(lParam);
|
||||||
|
if (WindowRect.right != ddraw->render.width || WindowRect.bottom != ddraw->render.height)
|
||||||
ddraw_SetDisplayMode(ddraw, ddraw->width, ddraw->height, ddraw->bpp);
|
ddraw_SetDisplayMode(ddraw, ddraw->width, ddraw->height, ddraw->bpp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue