mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
options_menu: fix description wrap width
This commit is contained in:
parent
90a08a8742
commit
5944abe1a7
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue