summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-07-09 21:05:54 +0800
committerErik Kundiman <erik@megapahit.org>2024-07-09 21:05:54 +0800
commit36585539dcf15af82335b9c106f41696823dc4b1 (patch)
treee599ecd76e9f31c05efb2febebf22d0377ec7ced /indra/llui
parentd44065eb6d90af47401e9d0b76ad560edbb4927b (diff)
parentecdbdc8ea6fbd9a918584be1191e012af4b38af3 (diff)
Merge branch 'main' into webrtc-voice
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp
index 35e2e54217..c3dd2eb17a 100644
--- a/indra/llui/llui.cpp
+++ b/indra/llui/llui.cpp
@@ -223,7 +223,7 @@ void LLUI::getMousePositionScreen(S32 *x, S32 *y)
LLCoordGL cursor_pos_gl(cursor_pos_window.convert());
*x = ll_round((F32)cursor_pos_gl.mX / getScaleFactor().mV[VX]);
*y = ll_round((F32)cursor_pos_gl.mY / getScaleFactor().mV[VY]);
-#if defined(LL_DARWIN)
+#if defined(LL_SDL)
*x = *x * LLView::getWindow()->getSystemUISize();
*y = *y * LLView::getWindow()->getSystemUISize();
#endif