mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 03:14:00 +02:00
Mouse pointer works a bit better
SDL2 showed native and MG mouse pointer at the same time. Attempt to fix it.
This commit is contained in:
@@ -1685,7 +1685,7 @@ void showCursor(bool b) {
|
||||
if(isCursorShowing() == b) {
|
||||
return;
|
||||
}
|
||||
|
||||
//printf("showCursor(bool b) b=%d\n",b);
|
||||
SDL_ShowCursor(b == true ? SDL_ENABLE : SDL_DISABLE);
|
||||
}
|
||||
|
||||
|
@@ -50,7 +50,6 @@ bool Window::isFullScreen = false;
|
||||
SDL_keysym Window::keystate;
|
||||
|
||||
bool Window::isActive = false;
|
||||
bool Window::no2DMouseRendering = false;
|
||||
#ifdef WIN32
|
||||
bool Window::allowAltEnterFullscreenToggle = false;
|
||||
#else
|
||||
@@ -428,7 +427,7 @@ bool Window::handleEvent() {
|
||||
// bool willShowCursor = (!Window::isActive || (Window::lastShowMouseState == SDL_ENABLE) || Window::getUseDefaultCursorOnly());
|
||||
// showCursor(willShowCursor);
|
||||
// }
|
||||
showCursor(true);
|
||||
showCursor(false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user