diff options
author | Ansariel <none@none> | 2011-12-05 23:35:29 +0100 |
---|---|---|
committer | Ansariel <none@none> | 2011-12-05 23:35:29 +0100 |
commit | 1e2d424f9e82a1d75a4b78b06910400f55c5169a (patch) | |
tree | 3d55f80fd12fdcbf9eb2b9066b864bff7035d190 /indra/llwindow/llwindowwin32.cpp | |
parent | f5a94e0f8196c5c068995090cd57bb27e97aaac9 (diff) |
STORM-1713: Mouse pointer flickers when hovering over any active/clickable UI item
Diffstat (limited to 'indra/llwindow/llwindowwin32.cpp')
-rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 799f0a3fab..03fff3d526 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -1667,18 +1667,18 @@ void LLWindowWin32::initCursors() -void LLWindowWin32::setCursor(ECursorType cursor) +void LLWindowWin32::updateCursor() { - if (cursor == UI_CURSOR_ARROW + if (mNextCursor == UI_CURSOR_ARROW && mBusyCount > 0) { - cursor = UI_CURSOR_WORKING; + mNextCursor = UI_CURSOR_WORKING; } - if( mCurrentCursor != cursor ) + if( mCurrentCursor != mNextCursor ) { - mCurrentCursor = cursor; - SetCursor( mCursor[cursor] ); + mCurrentCursor = mNextCursor; + SetCursor( mCursor[mNextCursor] ); } } @@ -1760,6 +1760,8 @@ void LLWindowWin32::gatherInput() mInputProcessingPaused = FALSE; + updateCursor(); + // clear this once we've processed all mouse messages that might have occurred after // we slammed the mouse position mMousePositionModified = FALSE; |