From 1048f213c7f39ab1f9ba32024e4a39154057a24f Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Tue, 3 Jun 2014 00:56:24 -0400 Subject: [PATCH] Fix maximized windows being repositioned to no longer maximized when applying graphics settings. --- indra/newview/llviewerwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 1b9f340e8..bdcce83ae 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -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);