mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Added more generic way to unlock frame rate when needed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user