diff options
author | Geenz <geenz@geenzo.com> | 2013-07-23 10:39:32 -0400 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2013-07-23 10:39:32 -0400 |
commit | 6ca0bbe3365b3d554789915ac143a87d2d39fdfa (patch) | |
tree | 3d3aae0ed6d7065fa720a91ac0c18c835ac6e00d /indra | |
parent | dea416fd83497d22147b3c0abab1bf1240e472dd (diff) |
Fix for BUG-3364
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/llwindow/llwindowmacosx.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index a3e88ea7dc..56472e6b45 100755 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -316,7 +316,7 @@ void callMouseMoved(float *pos, MASK mask) outCoords.mX += deltas[0]; outCoords.mY += deltas[1]; gWindowImplementation->getCallbacks()->handleMouseMove(gWindowImplementation, outCoords, gKeyboard->currentMask(TRUE)); - gWindowImplementation->getCallbacks()->handleScrollWheel(gWindowImplementation, 0); + //gWindowImplementation->getCallbacks()->handleScrollWheel(gWindowImplementation, 0); } void callScrollMoved(float delta) @@ -849,20 +849,24 @@ BOOL LLWindowMacOSX::setSizeImpl(const LLCoordScreen size) { if(mWindow) { - setWindowSize(mWindow, size.mX, size.mY); + LLCoordWindow to; + convertCoords(size, &to); + setWindowSize(mWindow, to.mX, to.mY); + return TRUE; } - return TRUE; + return FALSE; } BOOL LLWindowMacOSX::setSizeImpl(const LLCoordWindow size) { if (mWindow) { - LLCoordScreen screen_size; - convertCoords(size, &screen_size); - return setSizeImpl(screen_size); + const int titlePadding = 22; + setWindowSize(mWindow, size.mX, size.mY + titlePadding); + return TRUE; } + return FALSE; } |