Fix text clipping on installer wizard description field (#246)

This commit is contained in:
DeaTh-G 2025-01-30 17:52:37 +01:00 committed by GitHub
parent fefb08cc4b
commit 70f042d11f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,