mirror of https://github.com/PCSX2/pcsx2.git
GUI: Don't resize the window automatically while it's maximised or fullscreen. (Annoying consequence: if you change the GS window size setting while it's fullscreen or maximised, the setting will be overwritten by the resize event on restoring to normal size. Seems to be far more hassle to work around than it's worth.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5423 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
1cc654e9bf
commit
a06b9064f2
|
@ -496,6 +496,7 @@ void GSFrame::AppStatusEvent_OnSettingsApplied()
|
||||||
|
|
||||||
SetWindowStyle((g_Conf->GSWindow.DisableResizeBorders ? 0 : wxRESIZE_BORDER) | wxCAPTION | wxCLIP_CHILDREN |
|
SetWindowStyle((g_Conf->GSWindow.DisableResizeBorders ? 0 : wxRESIZE_BORDER) | wxCAPTION | wxCLIP_CHILDREN |
|
||||||
wxSYSTEM_MENU | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxCLOSE_BOX);
|
wxSYSTEM_MENU | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxCLOSE_BOX);
|
||||||
|
if (!IsFullScreen() && !IsMaximized())
|
||||||
SetClientSize(g_Conf->GSWindow.WindowSize);
|
SetClientSize(g_Conf->GSWindow.WindowSize);
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue