mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix text clipping on installer wizard description field (#246)
This commit is contained in:
parent
fefb08cc4b
commit
70f042d11f
1 changed files with 6 additions and 1 deletions
|
|
@ -710,6 +710,11 @@ static void DrawDescriptionContainer()
|
||||||
float textX = clipRectMin.x + fontSize;
|
float textX = clipRectMin.x + fontSize;
|
||||||
float textY = clipRectMin.y - Scale(1.0f);
|
float textY = clipRectMin.y - Scale(1.0f);
|
||||||
|
|
||||||
|
auto lineWidth = clipRectMax.x - (fontSize / 2.0f) - clipRectMin.x;
|
||||||
|
|
||||||
|
clipRectMax.x += fontSize;
|
||||||
|
clipRectMax.y += Scale(1.0f);
|
||||||
|
|
||||||
float lineMargin = 5.0f;
|
float lineMargin = 5.0f;
|
||||||
|
|
||||||
if (Config::Language == ELanguage::Japanese)
|
if (Config::Language == ELanguage::Japanese)
|
||||||
|
|
@ -736,7 +741,7 @@ static void DrawDescriptionContainer()
|
||||||
(
|
(
|
||||||
g_seuratFont,
|
g_seuratFont,
|
||||||
fontSize,
|
fontSize,
|
||||||
clipRectMax.x - clipRectMin.x,
|
lineWidth,
|
||||||
{ textX, textY },
|
{ textX, textY },
|
||||||
lineMargin,
|
lineMargin,
|
||||||
descriptionText,
|
descriptionText,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue