From f82c9e7dba8d060506c36af185de6be387eddeaa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 9 Mar 2009 17:32:15 +0000 Subject: [PATCH] [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. --- clutter/clutter-text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 0f5c66c06..4d3c3098f 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -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))