summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowwin32.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-02-27 11:26:08 -0800
committerRichard Linden <none@none>2012-02-27 11:26:08 -0800
commit8024727d4546c07b723d1129651c189f7d2f28e3 (patch)
treeb7cc9da41ab43f13f008bee706a0290e9edce46b /indra/llwindow/llwindowwin32.cpp
parent4e24022b8c4d080602014b1ebd8260f0cea527c5 (diff)
EXP-1832 WIP Viewer Size not persistent across logins
fixed not unmaximizing properly on Windows put in error logging on Mac
Diffstat (limited to 'indra/llwindow/llwindowwin32.cpp')
-rw-r--r--indra/llwindow/llwindowwin32.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp
index 9aef25491b..bc85acbf45 100644
--- a/indra/llwindow/llwindowwin32.cpp
+++ b/indra/llwindow/llwindowwin32.cpp
@@ -872,6 +872,15 @@ BOOL LLWindowWin32::setSizeImpl(const LLCoordScreen size)
return FALSE;
}
+ WINDOWPLACEMENT placement;
+ placement.length = sizeof(WINDOWPLACEMENT);
+
+ if (!GetWindowPlacement(mWindowHandle, &placement)) return FALSE;
+
+ placement.showCmd = SW_RESTORE;
+
+ if (!SetWindowPlacement(mWindowHandle, &placement)) return FALSE;
+
moveWindow(position, size);
return TRUE;
}