summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowmacosx.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-02-23 12:39:32 -0800
committerRichard Linden <none@none>2012-02-23 12:39:32 -0800
commit9da67fff0a21ae7af2f99c90be267b089eaafeb6 (patch)
treee32bf21579865a0e079e5a55828ef12d072a7cce /indra/llwindow/llwindowmacosx.cpp
parent3053712f446a22316d31bfcedd89c3f175ec4f21 (diff)
EXP-1832 FIX Viewer Size not persistent across logins
made Set Window Size correctly set interior window rect, preserving measured dimensions
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
-rw-r--r--indra/llwindow/llwindowmacosx.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp
index c952f8bbcf..a998d1f877 100644
--- a/indra/llwindow/llwindowmacosx.cpp
+++ b/indra/llwindow/llwindowmacosx.cpp
@@ -1266,6 +1266,19 @@ BOOL LLWindowMacOSX::setSizeImpl(const LLCoordScreen size)
return TRUE;
}
+BOOL LLWindowMacOSX::setSizeImpl(const LLCoordWindow size)
+{
+ Rect client_rect;
+ if (mWindow && GetWindowBounds(mWindow, kWindowContentRgn, &client_rect) != noErr)
+ {
+ client_rect.right = client_rect.left + size.mX;
+ client_rect.bottom = client_rect.top + size.mY;
+ OSStatus err = SetWindowBounds(mWindow, kWindowContentRgn, &client_rect);
+ return err == noErr;
+ }
+ return FALSE;
+}
+
void LLWindowMacOSX::swapBuffers()
{
aglSwapBuffers(mContext);