From b6960e7113fb780c9dfdc0028dd83ff7c56ad4b2 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:11:38 +0000 Subject: [PATCH] options_menu: round res scale description resolution --- UnleashedRecomp/ui/options_menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 77be0ded..1f490abd 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -439,7 +439,7 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef* conf if (g_selectedItem == config) { drawList->AddRectFilledMultiColor(min, max, COLOR0, COLOR0, COLOR1, COLOR1); - DrawTextWithMarquee(g_seuratFont, size, textPos, min, max, IM_COL32_WHITE, configName.c_str(), g_rowSelectionTime, 1.0, 250.0); + DrawTextWithMarquee(g_seuratFont, size, textPos, min, max, IM_COL32_WHITE, configName.c_str(), g_rowSelectionTime, 0.9, 250.0); } else { @@ -773,7 +773,7 @@ void DrawInfoPanel() if (g_selectedItem->GetName() == "ResolutionScale") { char buf[100]; - auto resScale = *(float*)g_selectedItem->GetValue(); + auto resScale = round(*(float*)g_selectedItem->GetValue() * 1000) / 1000; std::snprintf(buf, sizeof(buf), desc.c_str(), (int)((float)Window::s_width * resScale),