[FIRE-36127] Fix the Pie menu on macOS with HiDPI displays

master
Hecklezz 2025-11-24 04:59:55 +10:00
parent f36da6af09
commit 54b9f194f0
1 changed files with 5 additions and 3 deletions

View File

@ -1268,9 +1268,11 @@ bool LLWindowMacOSX::setCursorPosition(const LLCoordWindow position)
// trigger mouse move callback
LLCoordGL gl_pos;
convertCoords(position, &gl_pos);
float scale = getSystemUISize();
gl_pos.mX *= scale;
gl_pos.mY *= scale;
// <FS:TJ> gl_pos is not meant to be scaled and breaks our pie menu and possibly other things
//float scale = getSystemUISize();
//gl_pos.mX *= scale;
//gl_pos.mY *= scale;
// </FS:TJ>
mCallbacks->handleMouseMove(this, gl_pos, (MASK)0);
return result;