diff options
author | Vir Linden <vir@lindenlab.com> | 2021-10-25 15:55:06 +0000 |
---|---|---|
committer | Vir Linden <vir@lindenlab.com> | 2021-10-25 15:55:06 +0000 |
commit | ba3459f77fc9b93c8dd79bc3ac7c59ba792da27f (patch) | |
tree | 6267b828141028889894be919263c6d19c6e54c1 /indra/newview/llviewerwindow.cpp | |
parent | a42b5d680935f08310de69f240435a7b67227a4d (diff) | |
parent | 3efd4c50a031ce0c1cb3d2fcc43e403136277e1f (diff) |
Merged DRTVWR-546 into SL-15999
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 2342b6219c..7dc7b33938 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -3802,8 +3802,15 @@ void LLViewerWindow::updateLayout() void LLViewerWindow::updateMouseDelta() { +#if LL_WINDOWS + LLCoordCommon delta; + mWindow->getCursorDelta(&delta); + S32 dx = delta.mX; + S32 dy = delta.mY; +#else S32 dx = lltrunc((F32) (mCurrentMousePoint.mX - mLastMousePoint.mX) * LLUI::getScaleFactor().mV[VX]); S32 dy = lltrunc((F32) (mCurrentMousePoint.mY - mLastMousePoint.mY) * LLUI::getScaleFactor().mV[VY]); +#endif //RN: fix for asynchronous notification of mouse leaving window not working LLCoordWindow mouse_pos; |