summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authormobserveur <mobserveur@gmail.com>2024-07-05 20:16:10 +0200
committermobserveur <mobserveur@gmail.com>2024-07-05 20:16:10 +0200
commit9fe3404f767b7613db2e11935999549b8a13f12b (patch)
tree6ee70431ed8dec71a1ab30e133f55937b3652c0f /indra
parent9f62ef6cb34ebc91aa82715ce8b036c0af7affef (diff)
fix for the contextual menu issue in HiDPI mode
This commit fixes an issue with the contextual menu in HiDPI mode, as well as the positioning of object hover informations.
Diffstat (limited to 'indra')
-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