mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[text] Fix Pango unit to pixels conversion
When going from Pango units to pixels we need to divide by 1024, and not multiply by 1024.
This commit is contained in:
parent
5ea3b47144
commit
c27f429819
@ -1465,7 +1465,7 @@ clutter_text_get_preferred_width (ClutterActor *self,
|
||||
logical_width = logical_rect.x + logical_rect.width;
|
||||
|
||||
layout_width = logical_width > 0
|
||||
? (logical_width * 1024)
|
||||
? (logical_width / 1024.0f)
|
||||
: 1;
|
||||
|
||||
if (min_width_p)
|
||||
|
Loading…
Reference in New Issue
Block a user