1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-10 19:09:45 +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.over30mode = !game.over30mode;
game.savestats(); game.savestats();
break; break;
#ifndef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
case 6: case 6:
//toggle vsync //toggle vsync
music.playef(11); music.playef(11);
@ -374,6 +375,7 @@ void menuactionpress()
graphics.screenbuffer->resetRendererWorkaround(); graphics.screenbuffer->resetRendererWorkaround();
game.savestats(); game.savestats();
break; break;
#endif
default: default:
//back //back
music.playef(11); music.playef(11);

View file

@ -228,6 +228,7 @@ void menurender()
graphics.Print(-1, 95, "Current mode: Over 30 FPS", tr, tg, tb, true); graphics.Print(-1, 95, "Current mode: Over 30 FPS", tr, tg, tb, true);
} }
break; break;
#ifndef __HAIKU__ // FIXME: Remove after SDL VSync bug is fixed! -flibit
case 6: case 6:
graphics.bigprint(-1, 30, "Toggle VSync", tr, tg, tb, true); graphics.bigprint(-1, 30, "Toggle VSync", tr, tg, tb, true);
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);
@ -241,6 +242,7 @@ void menurender()
graphics.Print(-1, 95, "Current mode: VSYNC ON", tr, tg, tb, true); graphics.Print(-1, 95, "Current mode: VSYNC ON", tr, tg, tb, true);
} }
break; break;
#endif
} }
break; break;
case Menu::credits: case Menu::credits: