mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
- changed show cursor code since it was not easily allowing you to cursour out of the SDL window
This commit is contained in:
@@ -780,11 +780,12 @@ void sleep(int millis) {
|
||||
void showCursor(bool b) {
|
||||
int x,y;
|
||||
if(b) {
|
||||
SDL_GetMouseState( &x, &y );
|
||||
//SDL_GetMouseState( &x, &y );
|
||||
}
|
||||
SDL_ShowCursor(b ? SDL_ENABLE : SDL_DISABLE);
|
||||
if(b) {
|
||||
SDL_WarpMouse(x,y);
|
||||
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
||||
//SDL_WarpMouse(x,y);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user