Fixes for controller config & input viewer

This commit is contained in:
Luke Street
2026-04-09 23:30:03 -06:00
parent 7e77577097
commit 4dd287c851
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
namespace dusk {
void TextCenter(const std::string& text) {
float font_size = ImGui::GetFontSize() * text.size() / 2;
float font_size = ImGui::CalcTextSize(text.c_str()).x;
ImGui::SameLine(ImGui::GetWindowSize().x / 2 - font_size + (font_size / 2));
ImGui::TextUnformatted(text.c_str());