From d97a8c431b0a937e42490bc7f29a9282514686a4 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 24 Oct 2011 11:58:23 +0100 Subject: [PATCH] cairo-texture: Drop the half pixel rounding Calling ceilf() should be enough. https://bugzilla.gnome.org/show_bug.cgi?id=661887 --- clutter/clutter-cairo-texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-cairo-texture.c b/clutter/clutter-cairo-texture.c index a6a5b88d9..cb495f7b0 100644 --- a/clutter/clutter-cairo-texture.c +++ b/clutter/clutter-cairo-texture.c @@ -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);