mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Merge branch 'microoptimize-label-wfh' into 'main'
Microoptimize GtkLabel width-for-height computation See merge request GNOME/gtk!6219
This commit is contained in:
commit
857f50649c
@ -1202,7 +1202,7 @@ my_pango_layout_get_width_for_height (PangoLayout *layout,
|
||||
else if (text_height > for_height)
|
||||
min = mid + 1;
|
||||
else
|
||||
max = mid;
|
||||
max = text_width;
|
||||
}
|
||||
|
||||
return min * PANGO_SCALE;
|
||||
|
Loading…
Reference in New Issue
Block a user