diff options
author | mobserveur <mobserveur@gmail.com> | 2024-06-18 10:19:08 +0200 |
---|---|---|
committer | mobserveur <mobserveur@gmail.com> | 2024-06-18 10:19:08 +0200 |
commit | 7e11007cd6188fbdd93847596baf7b57a122e81d (patch) | |
tree | 095ee4337092146e880ad29bc8174c94daf2d174 /indra/llui | |
parent | 58d93108b48a878992e59992fb96605f684fed77 (diff) |
SDL 2 Window completions and HiDPI support
This commit completes the SDL 2 support and adds HiDPI support for Mac.
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp index c7539fcec7..35e2e54217 100644 --- a/indra/llui/llui.cpp +++ b/indra/llui/llui.cpp @@ -223,6 +223,11 @@ 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) + *x = *x * LLView::getWindow()->getSystemUISize(); + *y = *y * LLView::getWindow()->getSystemUISize(); +#endif + } void LLUI::setMousePositionLocal(const LLView* viewp, S32 x, S32 y) |