1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Remove unnecessary createmenu(Menu::graphicoptions) calls

These aren't necessary, the menu will update regardless. There isn't
even such a call for the mouse cursor toggle option, that's how
unnecessary it is.
This commit is contained in:
Misa 2020-04-16 19:23:19 -07:00 committed by Ethan Lee
parent bf4427c75a
commit 80ae625585

View file

@ -308,7 +308,6 @@ void menuactionpress()
graphics.screenbuffer->toggleFullScreen(); graphics.screenbuffer->toggleFullScreen();
game.fullscreen = !game.fullscreen; game.fullscreen = !game.fullscreen;
game.savestats(); game.savestats();
game.createmenu(Menu::graphicoptions);
game.currentmenuoption = 0; game.currentmenuoption = 0;
break; break;
case 1: case 1:
@ -316,7 +315,6 @@ void menuactionpress()
graphics.screenbuffer->toggleStretchMode(); graphics.screenbuffer->toggleStretchMode();
game.stretchMode = (game.stretchMode + 1) % 3; game.stretchMode = (game.stretchMode + 1) % 3;
game.savestats(); game.savestats();
game.createmenu(Menu::graphicoptions);
game.currentmenuoption = 1; game.currentmenuoption = 1;
break; break;
case 2: case 2:
@ -324,7 +322,6 @@ void menuactionpress()
graphics.screenbuffer->toggleLinearFilter(); graphics.screenbuffer->toggleLinearFilter();
game.useLinearFilter = !game.useLinearFilter; game.useLinearFilter = !game.useLinearFilter;
game.savestats(); game.savestats();
game.createmenu(Menu::graphicoptions);
game.currentmenuoption = 2; game.currentmenuoption = 2;
break; break;
case 3: case 3:
@ -333,7 +330,6 @@ void menuactionpress()
game.fullScreenEffect_badSignal = !game.fullScreenEffect_badSignal; game.fullScreenEffect_badSignal = !game.fullScreenEffect_badSignal;
graphics.screenbuffer->badSignalEffect= !graphics.screenbuffer->badSignalEffect; graphics.screenbuffer->badSignalEffect= !graphics.screenbuffer->badSignalEffect;
game.savestats(); game.savestats();
game.createmenu(Menu::graphicoptions);
game.currentmenuoption = 3; game.currentmenuoption = 3;
break; break;
case 4: case 4: