mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +00:00
fix option names being split to multiple lines
This commit is contained in:
parent
810ca6865d
commit
45c66d1ac2
2 changed files with 7 additions and 3 deletions
|
|
@ -211,7 +211,7 @@ void DrawTextWithMarquee(const ImFont* font, float fontSize, const ImVec2& pos,
|
||||||
(
|
(
|
||||||
font,
|
font,
|
||||||
fontSize,
|
fontSize,
|
||||||
rectWidth,
|
FLT_MAX,
|
||||||
{ textX, position.y },
|
{ textX, position.y },
|
||||||
0.0f,
|
0.0f,
|
||||||
text,
|
text,
|
||||||
|
|
@ -232,7 +232,7 @@ void DrawTextWithMarquee(const ImFont* font, float fontSize, const ImVec2& pos,
|
||||||
(
|
(
|
||||||
font,
|
font,
|
||||||
fontSize,
|
fontSize,
|
||||||
rectWidth,
|
FLT_MAX,
|
||||||
{ textX + textSize.x + rectWidth, position.y },
|
{ textX + textSize.x + rectWidth, position.y },
|
||||||
0.0f,
|
0.0f,
|
||||||
text,
|
text,
|
||||||
|
|
|
||||||
|
|
@ -751,11 +751,13 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
drawList->PushClipRect(min, max, true);
|
||||||
|
|
||||||
DrawRubyAnnotatedText
|
DrawRubyAnnotatedText
|
||||||
(
|
(
|
||||||
g_seuratFont,
|
g_seuratFont,
|
||||||
size,
|
size,
|
||||||
textClipRect.z - textClipRect.x,
|
FLT_MAX,
|
||||||
textPos,
|
textPos,
|
||||||
0.0f,
|
0.0f,
|
||||||
configName.c_str(),
|
configName.c_str(),
|
||||||
|
|
@ -768,6 +770,8 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
|
||||||
DrawTextBasic(g_seuratFont, annotationSize, pos, textColour, str);
|
DrawTextBasic(g_seuratFont, annotationSize, pos, textColour, str);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
drawList->PopClipRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Right side
|
// Right side
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue