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

This commit is contained in:
Zeno Rogue
2021-02-07 22:55:10 +01:00
parent 50cb77e413
commit 015f6227fa
9 changed files with 343 additions and 195 deletions
+5 -3
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();
}
}