From Stephan Huber, "attached you'll find a fix for the non-working useCursor()-method for

Windows. With the old code you can switch off the cursor, but not back on."
This commit is contained in:
Robert Osfield 2011-06-14 09:16:44 +00:00
parent e1f5597167
commit 529ea4c94f

View File

@ -2102,11 +2102,12 @@ void GraphicsWindowWin32::setWindowName( const std::string & name )
void GraphicsWindowWin32::useCursor( bool cursorOn ) void GraphicsWindowWin32::useCursor( bool cursorOn )
{ {
_traits->useCursor = cursorOn; if (_traits.valid())
if (_traits->useCursor == false) _traits->useCursor = cursorOn;
{
setCursor(NoCursor); // note, we are using setCursorImpl to set the cursor, so we can use
} // _appMouseCursor to cache the current mouse-cursor
setCursorImpl(cursorOn ? _appMouseCursor : NoCursor);
} }
void GraphicsWindowWin32::setCursor( MouseCursor mouseCursor ) void GraphicsWindowWin32::setCursor( MouseCursor mouseCursor )