gui: Fix upper text scaling for small images

Resolves #5742.
From fa0a0212, the splash's upper text was scaled to PANGO_SCALE_MEDIUM
both when the image width was 2x or less than 2x. This was likely a
copy/paste issue, as the lower text code scaling does not duplicate.
This patch fixes it by changing the else condition to scale to
PANGO_SCALE_SMALL.
Note that this change is unlikely to be seen as it requires a very small
splash screen image to reach the else condition.
This commit is contained in:
Alx Sa 2023-05-20 16:20:00 +00:00
parent 8b6be32c51
commit a4541d8a7a
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ splash_create (Gimp *gimp,
else if (splash->width > 2 * ink.width)
gimp_pango_layout_set_scale (splash->upper, PANGO_SCALE_MEDIUM);
else
gimp_pango_layout_set_scale (splash->upper, PANGO_SCALE_MEDIUM);
gimp_pango_layout_set_scale (splash->upper, PANGO_SCALE_SMALL);
splash->lower = gtk_widget_create_pango_layout (splash->area,
MEASURE_LOWER);