mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Added more generic way to unlock frame rate when needed
This commit is contained in:
@@ -283,6 +283,8 @@ namespace hex::plugin::builtin {
|
||||
if (frontTask == nullptr)
|
||||
return;
|
||||
|
||||
ImHexApi::System::unlockFrameRate();
|
||||
|
||||
const auto progress = frontTask->getMaxValue() == 0 ? -1 : float(frontTask->getValue()) / float(frontTask->getMaxValue());
|
||||
|
||||
ImHexApi::System::setTaskBarProgress(ImHexApi::System::TaskProgressState::Progress, ImHexApi::System::TaskProgressType::Normal, u32(progress * 100));
|
||||
|
||||
@@ -186,6 +186,8 @@ namespace hex::plugin::builtin {
|
||||
if (over)
|
||||
return;
|
||||
|
||||
ImHexApi::System::unlockFrameRate();
|
||||
|
||||
const auto drawTile = [&](u32 x, u32 y) {
|
||||
drawList->AddRectFilled(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user