only center window if the new resolution is bigger than the current size of the window
This commit is contained in:
parent
2e65cc31aa
commit
3f93982306
1 changed files with 3 additions and 1 deletions
|
@ -715,7 +715,9 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
|||
}
|
||||
|
||||
//temporary fix: center window for games that keep changing their resolution
|
||||
if (This->width && This->bpp == bpp && (This->width != width || This->height != height))
|
||||
if (This->width &&
|
||||
(This->width != width || This->height != height) &&
|
||||
(width > WindowRect.right || height > WindowRect.bottom))
|
||||
{
|
||||
WindowRect.left = -32000;
|
||||
WindowRect.top = -32000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue