mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
always center to screen in games that use multiple resolutions
This commit is contained in:
parent
3bd57f9ad1
commit
f394d7f7ce
@ -686,6 +686,13 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
|||||||
This->render.height = WindowRect.bottom;
|
This->render.height = WindowRect.bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//temporary fix: center window for games that keep changing their resolution
|
||||||
|
if (This->width && This->bpp == bpp && (This->width != width || This->height != height))
|
||||||
|
{
|
||||||
|
WindowRect.left = -32000;
|
||||||
|
WindowRect.top = -32000;
|
||||||
|
}
|
||||||
|
|
||||||
This->width = width;
|
This->width = width;
|
||||||
This->height = height;
|
This->height = height;
|
||||||
This->bpp = bpp;
|
This->bpp = bpp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user