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

More VSync Haiku hackery

This commit is contained in:
Ethan Lee 2020-07-08 14:38:55 -04:00
parent d3f9a36941
commit 86fde7bf99
2 changed files with 4 additions and 0 deletions

View file

@ -367,6 +367,7 @@ 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);
@ -374,6 +375,7 @@ void menuactionpress()
graphics.screenbuffer->resetRendererWorkaround();
game.savestats();
break;
#endif
default:
//back
music.playef(11);

View file

@ -228,6 +228,7 @@ 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);
graphics.Print(-1, 65, "Turn VSync on or off.", tr, tg, tb, true);
@ -241,6 +242,7 @@ void menurender()
graphics.Print(-1, 95, "Current mode: VSYNC ON", tr, tg, tb, true);
}
break;
#endif
}
break;
case Menu::credits: