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

Remove VSync toggle ifdefs

These ifdefs can go away now that our minimum SDL version is 2.0.20.
This commit is contained in:
Misa 2021-11-11 23:54:00 -08:00 committed by Ethan Lee
parent 38d25c0850
commit 470a4358ef
2 changed files with 0 additions and 9 deletions

View file

@ -662,13 +662,10 @@ static void menuactionpress(void)
if (game.currentmenuoption == offset + 5) if (game.currentmenuoption == offset + 5)
{ {
processed = true; processed = true;
/* FIXME: Upgrade to SDL 2.0.18 and remove this ifdef when it releases! */
#if SDL_VERSION_ATLEAST(2, 0, 17)
//toggle vsync //toggle vsync
music.playef(11); music.playef(11);
gameScreen.toggleVSync(); gameScreen.toggleVSync();
game.savestatsandsettings_menu(); game.savestatsandsettings_menu();
#endif
} }
if (!processed) if (!processed)
{ {

View file

@ -370,13 +370,7 @@ static void menurender(void)
if (game.currentmenuoption == offset + 5) if (game.currentmenuoption == offset + 5)
{ {
graphics.bigprint(-1, 30, "Toggle VSync", tr, tg, tb, true); graphics.bigprint(-1, 30, "Toggle VSync", tr, tg, tb, true);
/* FIXME: Upgrade to SDL 2.0.18 and remove this ifdef when it releases! */
#if SDL_VERSION_ATLEAST(2, 0, 17)
graphics.Print(-1, 65, "Turn VSync on or off.", tr, tg, tb, true); graphics.Print(-1, 65, "Turn VSync on or off.", tr, tg, tb, true);
#else
graphics.Print(-1, 65, "Your SDL version is too old!", tr, tg, tb, true);
graphics.Print(-1, 75, "Edit the config file.", tr, tg, tb, true);
#endif
if (!gameScreen.vsync) if (!gameScreen.vsync)
{ {