options_menu: fix description wrap width

This commit is contained in:
Hyper 2024-11-20 20:45:41 +00:00
parent 90a08a8742
commit 5944abe1a7

View file

@ -990,9 +990,7 @@ static void DrawInfoPanel()
desc += "\n\n" + g_selectedItem->GetValueDescription(); desc += "\n\n" + g_selectedItem->GetValueDescription();
auto size = Scale(26.0f); 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( drawList->AddText(
g_seuratFont, g_seuratFont,
size, size,
@ -1000,7 +998,7 @@ static void DrawInfoPanel()
IM_COL32_WHITE, IM_COL32_WHITE,
desc.c_str(), desc.c_str(),
0, 0,
thumbnailMax.x - clipRectMin.x clipRectMax.x - clipRectMin.x
); );
// Pop clip rect from DrawContainer // Pop clip rect from DrawContainer