1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-22 00:29:43 +00:00

hopefully fixed the resize_screen_to loop

This commit is contained in:
Zeno Rogue
2026-01-27 15:37:36 +01:00
parent 692399ac45
commit d05f3d7830

View File

@@ -906,6 +906,7 @@ EX bool stillscreen;
int cframelimit = 1000;
EX void resize_screen_to(int x, int y) {
if(debug_control) println(hlog, "resize_screen_to ", tie(x, y));
dual::split_or_do([&] {
vid.killreduction = 0;
if(vid.want_fullscreen) return;
@@ -918,7 +919,7 @@ EX void resize_screen_to(int x, int y) {
vid.window_y = y;
}
});
apply_screen_settings();
if(!vid.want_fullscreen) apply_screen_settings();
}
int lastframe;