mirror of https://github.com/WerWolv/ImHex.git
Merge branch 'WerWolv:master' into master
This commit is contained in:
commit
7651ad6661
|
@ -19,7 +19,7 @@ namespace hex::plugin::builtin {
|
|||
framerate = 1.0F / ImGui::GetIO().DeltaTime;
|
||||
}
|
||||
|
||||
ImGui::TextUnformatted(hex::format("FPS {0:.2f}", framerate).c_str());
|
||||
ImGui::TextUnformatted(hex::format("FPS {0:2}.{1:02}", u32(framerate), u32(framerate * 100) % 100).c_str());
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ if (WIN32)
|
|||
source/lang/en_US.cpp
|
||||
source/lang/zh_CN.cpp
|
||||
|
||||
source/content/footer_items.cpp
|
||||
source/content/ui_items.cpp
|
||||
)
|
||||
|
||||
# Add additional include directories here #
|
||||
|
|
|
@ -67,9 +67,11 @@ namespace hex::plugin::windows {
|
|||
lastUserCPU = user;
|
||||
lastSysCPU = sys;
|
||||
}
|
||||
|
||||
cpuUsage *= 100;
|
||||
}
|
||||
|
||||
ImGui::TextUnformatted(hex::format(ICON_FA_TACHOMETER_ALT " {0:.2f}%", cpuUsage * 100).c_str());
|
||||
ImGui::TextUnformatted(hex::format(ICON_FA_TACHOMETER_ALT " {0:2}.{1:02}", u32(cpuUsage), u32(cpuUsage * 100) % 100).c_str());
|
||||
});
|
||||
|
||||
ContentRegistry::Interface::addFooterItem([] {
|
Loading…
Reference in New Issue