more fixes to SDL2 setting modes

This commit is contained in:
Zeno Rogue 2021-03-09 16:04:02 +01:00
parent 3d311b9dd7
commit 26b53f0db7
2 changed files with 5 additions and 2 deletions

View File

@ -1169,8 +1169,11 @@ EX void apply_screen_settings() {
#if CAP_VR
if(vrhr::state) vrhr::shutdown_vr();
#endif
#if !CAP_SDL2
SDL_QuitSubSystem(SDL_INIT_VIDEO);
#endif
graphics_on = false;
android_settings_changed();
init_graph();

View File

@ -671,7 +671,7 @@ EX void resize_screen_to(int x, int y) {
vid.window_y = y;
}
});
setvideomode();
apply_screen_settings();
}
int lastframe;