cairo-texture: Drop the half pixel rounding

Calling ceilf() should be enough.

https://bugzilla.gnome.org/show_bug.cgi?id=661887
This commit is contained in:
Emmanuele Bassi 2011-10-24 11:58:23 +01:00
parent 41d04f3611
commit d97a8c431b

View File

@ -464,8 +464,8 @@ clutter_cairo_texture_allocate (ClutterActor *self,
clutter_actor_box_get_size (allocation, &width, &height);
priv->surface_width = ceilf (width + 0.5);
priv->surface_height = ceilf (height + 0.5);
priv->surface_width = ceilf (width);
priv->surface_height = ceilf (height);
clutter_cairo_texture_surface_resize_internal (texture);
clutter_cairo_texture_invalidate (texture);