Fix text clipping on installer wizard description field

This commit is contained in:
DeaTh-G 2025-01-30 17:42:20 +01:00
parent c78c2010a3
commit 7f95c3947a

View file

@ -710,6 +710,11 @@ static void DrawDescriptionContainer()
float textX = clipRectMin.x + fontSize;
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;
if (Config::Language == ELanguage::Japanese)
@ -736,7 +741,7 @@ static void DrawDescriptionContainer()
(
g_seuratFont,
fontSize,
clipRectMax.x - clipRectMin.x,
lineWidth,
{ textX, textY },
lineMargin,
descriptionText,