Fix maximized windows being repositioned to no longer maximized when applying graphics settings.

This commit is contained in:
Inusaito Sayori
2014-06-03 00:56:24 -04:00
parent 98d88bff94
commit 1048f213c7

View File

@@ -5481,7 +5481,7 @@ void LLViewerWindow::restartDisplay(BOOL show_progress_bar)
BOOL LLViewerWindow::changeDisplaySettings(BOOL fullscreen, LLCoordScreen size, const S32 vsync_mode, BOOL show_progress_bar)
{
BOOL was_maximized = gSavedSettings.getBOOL("WindowMaximized");
BOOL was_maximized = mWindow->getMaximized();
mWantFullscreen = fullscreen;
mShowFullscreenProgress = show_progress_bar;
gSavedSettings.setBOOL("FullScreen", mWantFullscreen);