cairo-texture: Drop the half pixel rounding
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 24 Oct 2011 10:58:23 +0000 (11:58 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 31 Oct 2011 10:33:46 +0000 (10:33 +0000)
Calling ceilf() should be enough.

https://bugzilla.gnome.org/show_bug.cgi?id=661887

clutter/clutter-cairo-texture.c

index a6a5b88..cb495f7 100644 (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);