[clutter] cairo-texture: Drop the half pixel rounding
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] cairo-texture: Drop the half pixel rounding
- Date: Mon, 31 Oct 2011 10:51:25 +0000 (UTC)
commit d97a8c431b0a937e42490bc7f29a9282514686a4
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Oct 24 11:58:23 2011 +0100
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-cairo-texture.c b/clutter/clutter-cairo-texture.c
index a6a5b88..cb495f7 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]