SL-10898 FIXED [Mac] Camera spins and pulls back when using alt+zoom

master
Mnikolenko ProductEngine 2019-04-15 12:13:31 +03:00
parent 310e86f885
commit dc15ea44af
1 changed files with 1 additions and 5 deletions

View File

@ -264,13 +264,9 @@ void LLUI::dirtyRect(LLRect rect)
void LLUI::setMousePositionScreen(S32 x, S32 y)
{
S32 screen_x, screen_y;
#if defined(LL_DARWIN)
screen_x = ll_round((F32)x);
screen_y = ll_round((F32)y);
#else
screen_x = ll_round((F32)x * getScaleFactor().mV[VX]);
screen_y = ll_round((F32)y * getScaleFactor().mV[VY]);
#endif
LLView::getWindow()->setCursorPosition(LLCoordGL(screen_x, screen_y).convert());
}