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:
sudonim1@gmail.com 2012-09-24 15:12:46 +00:00
parent 1cc654e9bf
commit a06b9064f2
1 changed files with 2 additions and 1 deletions

View File

@ -496,7 +496,8 @@ 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);
SetClientSize( g_Conf->GSWindow.WindowSize ); if (!IsFullScreen() && !IsMaximized())
SetClientSize(g_Conf->GSWindow.WindowSize);
Refresh(); Refresh();
if( g_Conf->GSWindow.CloseOnEsc ) if( g_Conf->GSWindow.CloseOnEsc )