impr: Added more generic way to unlock frame rate when needed

This commit is contained in:
WerWolv
2025-07-27 16:25:10 +02:00
parent c7b2f26bd5
commit f42ae97f14
6 changed files with 28 additions and 2 deletions

View File

@@ -597,6 +597,14 @@ namespace hex {
object->reset();
}
static bool s_frameRateUnlockRequested = false;
bool frameRateUnlockRequested() {
return s_frameRateUnlockRequested;
}
void resetFrameRateUnlockRequested() {
s_frameRateUnlockRequested = false;
}
}
@@ -967,6 +975,9 @@ namespace hex {
impl::s_windowResizable = resizable;
}
void unlockFrameRate() {
impl::s_frameRateUnlockRequested = true;
}
}