Fix a windows sdl bug where starting in fullscreen then switching to window mode showed the sdl cursor.
This commit is contained in:
parent
7e1c367d66
commit
9dc63edb42
1 changed files with 7 additions and 0 deletions
|
@ -942,6 +942,13 @@ global void ToggleFullScreen(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef USE_WIN32
|
||||
// Windows shows the SDL cursor when starting in fullscreen mode
|
||||
// then switching to window mode. This hides the cursor again.
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
#endif
|
||||
|
||||
SDL_LockSurface(Screen);
|
||||
memcpy(Screen->pixels, pixels, framesize);
|
||||
free(pixels);
|
||||
|
|
Loading…
Add table
Reference in a new issue