mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-16 06:11:43 +00:00
close_sdl command
This commit is contained in:
@@ -1318,9 +1318,19 @@ EX void close_window() {
|
||||
SDL_GL_DestroyContext(s_context), s_have_context = false;
|
||||
}
|
||||
if(s_window) SDL_DestroyWindow(s_window), s_window = nullptr;
|
||||
graphics_on = false;
|
||||
vid.usingGL = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
EX void close_sdl() {
|
||||
close_window();
|
||||
SDL_Quit();
|
||||
sdl_on = false;
|
||||
graphics_on = false;
|
||||
vid.usingGL = false;
|
||||
}
|
||||
|
||||
EX void apply_screen_settings() {
|
||||
if(!need_to_apply_screen_settings()) return;
|
||||
if(!graphics_on) return;
|
||||
|
||||
Reference in New Issue
Block a user