Do not use Fixed values with COGL

The COGL API expects floating point values, not fixed point ones.
This commit is contained in:
Emmanuele Bassi 2009-03-10 12:52:03 +00:00
parent 7afc4310f6
commit 050c1e268d

View File

@ -411,9 +411,9 @@ mutter_shaped_texture_pick (ClutterActor *actor,
/* Paint the mask rectangle in the given color */ /* Paint the mask rectangle in the given color */
cogl_set_source_texture (priv->mask_texture); cogl_set_source_texture (priv->mask_texture);
cogl_rectangle_with_texture_coords (0, 0, cogl_rectangle_with_texture_coords (0, 0,
CLUTTER_UNITS_TO_FIXED (alloc.x2 - alloc.x1), CLUTTER_UNITS_TO_FLOAT (alloc.x2 - alloc.x1),
CLUTTER_UNITS_TO_FIXED (alloc.y2 - alloc.y1), CLUTTER_UNITS_TO_FLOAT (alloc.y2 - alloc.y1),
0, 0, CFX_ONE, CFX_ONE); 0, 0, 1, 1);
} }
} }