[test-texture-fbo] comment the colors defined in corner_colors
authorRobert Bragg <robert@linux.intel.com>
Mon, 2 Nov 2009 01:23:25 +0000 (01:23 +0000)
committerRobert Bragg <robert@linux.intel.com>
Wed, 4 Nov 2009 03:34:08 +0000 (03:34 +0000)
It helps to be able to quickly glance at the definition to see which
quadrant of the test actor should be which color, so when debugging a
problem and looking at the visual output you can easily verify if it's being
flipped upside down/left to right.

tests/conform/test-texture-fbo.c

index b11bde0..958fc29 100644 (file)
 static const ClutterColor
 corner_colors[SOURCE_DIVISIONS_X * SOURCE_DIVISIONS_Y] =
   {
-    { 0xff, 0x00, 0x00, 0xff },
-    { 0x00, 0xff, 0x00, 0xff },
-    { 0x00, 0x00, 0xff, 0xff },
-    { 0xff, 0x00, 0xff, 0xff }
+    { 0xff, 0x00, 0x00, 0xff }, /* red top left */
+    { 0x00, 0xff, 0x00, 0xff }, /* green top right */
+    { 0x00, 0x00, 0xff, 0xff }, /* blue bottom left */
+    { 0xff, 0x00, 0xff, 0xff }  /* purple bottom right */
   };
 
 static const ClutterColor stage_color = { 0x0, 0x0, 0x0, 0xff };