Haiku: Keep the option visible, but note the bug

This commit is contained in:
Ethan Lee 2020-07-08 14:43:04 -04:00
parent 86fde7bf99
commit 2716296a10
3 changed files with 6 additions and 6 deletions

View File

@ -6833,9 +6833,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
option("toggle filter");
option("toggle analogue");
option("toggle fps");
#ifndef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
option("toggle vsync");
#endif
option("return");
menuyoff = -10;
break;

View File

@ -367,15 +367,15 @@ void menuactionpress()
game.over30mode = !game.over30mode;
game.savestats();
break;
#ifndef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
case 6:
//toggle vsync
music.playef(11);
#ifndef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
graphics.screenbuffer->vsync = !graphics.screenbuffer->vsync;
graphics.screenbuffer->resetRendererWorkaround();
game.savestats();
break;
#endif
break;
default:
//back
music.playef(11);

View File

@ -228,10 +228,13 @@ void menurender()
graphics.Print(-1, 95, "Current mode: Over 30 FPS", tr, tg, tb, true);
}
break;
#ifndef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
case 6:
graphics.bigprint(-1, 30, "Toggle VSync", tr, tg, tb, true);
#ifdef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
graphics.Print(-1, 65, "Edit the config file on Haiku!", tr, tg, tb, true);
#else
graphics.Print(-1, 65, "Turn VSync on or off.", tr, tg, tb, true);
#endif
if (!graphics.screenbuffer->vsync)
{
@ -242,7 +245,6 @@ void menurender()
graphics.Print(-1, 95, "Current mode: VSYNC ON", tr, tg, tb, true);
}
break;
#endif
}
break;
case Menu::credits: