1
0
Fork 0

[text] Convert units to the right type

The COGL API expects a floating point value, so Units should be
converted to floats, not to ClutterFixed.
This commit is contained in:
Emmanuele Bassi 2009-03-09 17:32:15 +00:00
parent 97d0a4845a
commit f82c9e7dba

View file

@ -1067,8 +1067,8 @@ clutter_text_paint (ClutterActor *self)
pango_layout_get_extents (layout, NULL, &logical_rect);
cogl_clip_push (0, 0,
CLUTTER_UNITS_TO_FIXED (alloc.x2 - alloc.x1),
CLUTTER_UNITS_TO_FIXED (alloc.y2 - alloc.y1));
CLUTTER_UNITS_TO_FLOAT (alloc.x2 - alloc.x1),
CLUTTER_UNITS_TO_FLOAT (alloc.y2 - alloc.y1));
clip_set = TRUE;
actor_width = (CLUTTER_UNITS_TO_DEVICE (alloc.x2 - alloc.x1))