Add support for reduced output with Android port

This commit is contained in:
Lorenzooone
2025-05-27 00:21:18 +02:00
parent dec304c00b
commit 75b73d5952
6 changed files with 44 additions and 12 deletions

View File

@@ -265,6 +265,14 @@ void WindowScreen::end() {
this->display_lock.unlock();
}
bool WindowScreen::is_open() {
return this->m_win.isOpen();
}
bool WindowScreen::has_focus() {
return this->m_win.isOpen() && this->m_win.hasFocus();
}
void WindowScreen::after_thread_join() {
if(this->m_win.isOpen()) {
this->draw_lock->lock();