1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 09:17:57 +00:00

redone basic graphics settings (vsync, resolution, fullscreen, gl/aa)

This commit is contained in:
Zeno Rogue
2021-02-06 01:39:18 +01:00
parent 50cb77e413
commit 015f6227fa
9 changed files with 343 additions and 195 deletions

View File

@@ -89,8 +89,9 @@ namespace spiral {
velx=1; vely=1;
bool dosave = false;
bool saveGL = vid.usingGL;
if(saveGL) switchGL(); // { vid.usingGL = false; setvideomode(); }
bool saveGL = vid.wantGL;
vid.wantGL = false;
apply_screen_settings();
while(true) {
@@ -138,7 +139,8 @@ namespace spiral {
breakloop:
quickmap.clear();
if(saveGL) switchGL(); // { vid.usingGL = true; setvideomode(); }
vid.wantGL = saveGL;
apply_screen_settings();
}
}