From 9fe3404f767b7613db2e11935999549b8a13f12b Mon Sep 17 00:00:00 2001 From: mobserveur Date: Fri, 5 Jul 2024 20:16:10 +0200 Subject: 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. --- indra/llui/llui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llui') 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 -- cgit v1.2.3