summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2019-04-15 12:13:31 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2019-04-15 12:13:31 +0300
commit714a95e103963984fbb67630fb57006225e1fa8a (patch)
tree3610b62319304dd35822ad1099f778ed75d664bb /indra/llui
parentffe93b3c93b628b73c0a809f48c3370f656603bb (diff)
SL-10898 FIXED [Mac] Camera spins and pulls back when using alt+zoom
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llui.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp
index e9f8ba020e..a1b31fd5cc 100644
--- a/indra/llui/llui.cpp
+++ b/indra/llui/llui.cpp
@@ -237,13 +237,9 @@ void LLUI::dirtyRect(LLRect rect)
void LLUI::setMousePositionScreen(S32 x, S32 y)
{
S32 screen_x, screen_y;
-#if defined(LL_DARWIN)
- screen_x = ll_round((F32)x);
- screen_y = ll_round((F32)y);
-#else
screen_x = ll_round((F32)x * getScaleFactor().mV[VX]);
screen_y = ll_round((F32)y * getScaleFactor().mV[VY]);
-#endif
+
LLView::getWindow()->setCursorPosition(LLCoordGL(screen_x, screen_y).convert());
}