[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:
Emmanuele Bassi 2009-06-04 17:28:35 +01:00
parent 5ea3b47144
commit c27f429819

View File

@ -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)