Fix issue preventing reload of screen ratio

This commit is contained in:
Lorenzooone 2025-12-06 23:31:45 +01:00
parent 1ffa11fd2b
commit dc21e1babe
3 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@
// time version is baffling... :/
// It's the basis of making a library...
// Do they expect you to use dlopen? Is that what is going on?
#ifndef GPIOD_CTXLESS_FLAG_OPEN_DRAIN
#ifndef GPIOD_API
#define LIBGPIOD3
#endif

View File

@ -214,7 +214,7 @@ void WindowScreen::reload() {
this->future_operations.call_rotate = true;
this->future_operations.call_blur = true;
this->future_operations.call_screen_settings_update = true;
if(this->m_win.isOpen())
if(this->m_win.isOpen() || this->m_info.window_enabled)
this->create_window(false);
this->prepare_size_ratios(true, true);
}
@ -293,7 +293,7 @@ void WindowScreen::draw(double frame_time, VideoOutputData* out_buf, InputVideoD
if(this->m_win.isOpen() ^ should_be_open) {
if(this->m_win.isOpen())
this->close();
else
else if(!this->future_operations.call_create)
this->open();
}
if(!should_be_open)

View File

@ -20,6 +20,7 @@
#include <cstring>
#include <queue>
#include <cmath>
#include <algorithm>
#ifdef SFML_SYSTEM_ANDROID
// Since we want to get the native activity from SFML, we'll have to use an