mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
[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:
parent
97d0a4845a
commit
f82c9e7dba
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user