mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-01-24 13:39:02 -06:00
Properly right align FPS display
This commit is contained in:
@@ -71,8 +71,11 @@ namespace hex {
|
||||
}
|
||||
|
||||
if (this->m_fpsVisible) {
|
||||
ImGui::SameLine(ImGui::GetWindowWidth() - 80);
|
||||
ImGui::Text("%.1f FPS", ImGui::GetIO().Framerate);
|
||||
char buffer[0x20];
|
||||
snprintf(buffer, 0x20, "%.1f FPS", ImGui::GetIO().Framerate);
|
||||
|
||||
ImGui::SameLine(ImGui::GetWindowWidth() - ImGui::GetFontSize() * strlen(buffer) + 20);
|
||||
ImGui::TextUnformatted(buffer);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user