summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowmacosx.cpp
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2018-10-19 19:12:08 +0300
committerruslantproductengine <ruslantproductengine@lindenlab.com>2018-10-19 19:12:08 +0300
commit6ce18422de822a195813e5daa890000e1556ac03 (patch)
tree8056dd832a80821f264556acca8d1d4a2e728c7f /indra/llwindow/llwindowmacosx.cpp
parent2823b0639e6b020cee138563d34c74ad769b0bae (diff)
SL-9766 [Render] [Mac] Alt + left mouse click has severely impaired functions
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
-rw-r--r--indra/llwindow/llwindowmacosx.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp
index 7f6b30bd37..b02b77ffbd 100644
--- a/indra/llwindow/llwindowmacosx.cpp
+++ b/indra/llwindow/llwindowmacosx.cpp
@@ -1317,9 +1317,8 @@ BOOL LLWindowMacOSX::convertCoords(LLCoordScreen from, LLCoordWindow* to)
convertScreenToWindow(mWindow, mouse_point);
- float scale_factor = getDeviceScaleFactor();
- to->mX = mouse_point[0] * scale_factor;
- to->mY = mouse_point[1] * scale_factor;
+ to->mX = mouse_point[0];
+ to->mY = mouse_point[1];
return TRUE;
}
@@ -1337,9 +1336,8 @@ BOOL LLWindowMacOSX::convertCoords(LLCoordWindow from, LLCoordScreen *to)
convertWindowToScreen(mWindow, mouse_point);
- float scale_factor = getDeviceScaleFactor();
- to->mX = mouse_point[0] / scale_factor;
- to->mY = mouse_point[1] / scale_factor;
+ to->mX = mouse_point[0];
+ to->mY = mouse_point[1];
return TRUE;
}