From 5944abe1a7e76ba2bc60a02df8c6a03906b67563 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Wed, 20 Nov 2024 20:45:41 +0000 Subject: [PATCH] options_menu: fix description wrap width --- UnleashedRecomp/ui/options_menu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index f406d7f8..381ae58b 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -990,9 +990,7 @@ static void DrawInfoPanel() desc += "\n\n" + g_selectedItem->GetValueDescription(); auto size = Scale(26.0f); - auto textSize = g_seuratFont->CalcTextSizeA(size, FLT_MAX, 0.0f, desc.c_str()); - // TODO: fix word wrap width not scaling to resolution. drawList->AddText( g_seuratFont, size, @@ -1000,7 +998,7 @@ static void DrawInfoPanel() IM_COL32_WHITE, desc.c_str(), 0, - thumbnailMax.x - clipRectMin.x + clipRectMax.x - clipRectMin.x ); // Pop clip rect from DrawContainer