From 50b140d41ba0bca7739661e0e2fd40cd8bc519ec Mon Sep 17 00:00:00 2001 From: Lorenzooone Date: Fri, 24 May 2024 22:10:18 +0200 Subject: [PATCH] Prevent issue where loading would not mantain fullscreen --- source/WindowScreen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/WindowScreen.cpp b/source/WindowScreen.cpp index 69d654f..c251584 100755 --- a/source/WindowScreen.cpp +++ b/source/WindowScreen.cpp @@ -1316,6 +1316,8 @@ void WindowScreen::draw(double frame_time, VideoOutputData* out_buf) { else this->open(); } + if(!should_be_open) + this->m_info.is_fullscreen = false; this->loaded_menu = this->curr_menu; loaded_operations = future_operations; if(this->m_win.isOpen() || this->loaded_operations.call_create) { @@ -2141,7 +2143,6 @@ void WindowScreen::update_view_size() { } void WindowScreen::open() { - this->m_info.is_fullscreen = false; this->create_window(true); }