[test-depth] Use a gint for width, not guint, when calculating -width/2
authorRobert Bragg <robert@linux.intel.com>
Wed, 7 Jan 2009 12:08:43 +0000 (12:08 +0000)
committerRobert Bragg <robert@linux.intel.com>
Thu, 8 Jan 2009 11:03:23 +0000 (11:03 +0000)
It was a fluke that this worked out due to how clutter_actor_set_depth
internally converts the incorrect integer result to fixed point.

tests/interactive/test-depth.c

index 02e5e8b..34c024e 100644 (file)
@@ -26,7 +26,7 @@ raise_top (gpointer ignored)
 static ClutterActor *
 clone_box (ClutterTexture *original)
 {
-  guint width, height;
+  gint width, height;
   ClutterActor *group;
   ClutterActor *clone;