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

redraw if viewport x/y are not 0

This commit is contained in:
FunkyFr3sh 2018-03-23 00:52:08 +01:00
parent 4725035462
commit 4114b96766

View File

@ -441,7 +441,7 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
mouse_lock();
}
if(This->boxing || This->maintas)
if(This->render.viewport.x != 0 || This->render.viewport.y != 0)
{
RedrawWindow(This->hWnd, NULL, NULL, RDW_ERASE | RDW_INVALIDATE);
}