mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-22 16:59:46 +01:00
Remove unnecessary cursor toggling when toggling fullscreen
For some reason, the cursor would be either disabled and re-enabled if you switched to windowed mode, or it would be always enabled if you switched to fullscreen mode. This only happened when you toggled fullscreen using the Alt+Enter, Alt+F, or F11 keybinds, and the fullscreen option in graphic options doesn't have this problem. This cursor toggling business seems like an arcane incantation back in the days of SDL1.2, now since no longer necessary with SDL2. However, after some testing, it seems like removing these indecipherable runes don't cause any harm, so I'm going to remove them. Fixes #371.
This commit is contained in:
parent
5de6f22175
commit
1a64e9c528
1 changed files with 0 additions and 16 deletions
|
@ -466,22 +466,6 @@ void inline fixedloop()
|
||||||
key.Poll();
|
key.Poll();
|
||||||
if(key.toggleFullscreen)
|
if(key.toggleFullscreen)
|
||||||
{
|
{
|
||||||
if(!gameScreen.isWindowed)
|
|
||||||
{
|
|
||||||
SDL_ShowCursor(SDL_DISABLE);
|
|
||||||
SDL_ShowCursor(SDL_ENABLE);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SDL_ShowCursor(SDL_ENABLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(game.gamestate == EDITORMODE)
|
|
||||||
{
|
|
||||||
SDL_ShowCursor(SDL_ENABLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
gameScreen.toggleFullScreen();
|
gameScreen.toggleFullScreen();
|
||||||
game.fullscreen = !game.fullscreen;
|
game.fullscreen = !game.fullscreen;
|
||||||
key.toggleFullscreen = false;
|
key.toggleFullscreen = false;
|
||||||
|
|
Loading…
Reference in a new issue