use right window type

This commit is contained in:
Reonu 2024-04-25 01:15:34 +01:00
parent bd7e2aa1fd
commit 4783f3f51a
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ ultramodern::WindowHandle create_window(ultramodern::gfx_callbacks_t::gfx_data_t
if (ultramodern::get_graphics_config().wm_option == ultramodern::WindowMode::Fullscreen) { // TODO: Remove once RT64 gets native fullscreen support on Linux
SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP);
} else {
SDL_SetWindowFullscreen(window,SDL_WINDOW_RESIZABLE);
SDL_SetWindowFullscreen(window,0);
}
#endif

View file

@ -197,7 +197,7 @@ void apply_graphics_config(void) {
if (new_options.wm_option == ultramodern::WindowMode::Fullscreen) {
SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP);
} else {
SDL_SetWindowFullscreen(window,SDL_WINDOW_RESIZABLE);
SDL_SetWindowFullscreen(window,0);
}
#endif
}