Index: /branches/eam_branches/20090715/Ohana/src/kapa2/src/CheckVisual.c
===================================================================
--- /branches/eam_branches/20090715/Ohana/src/kapa2/src/CheckVisual.c	(revision 24989)
+++ /branches/eam_branches/20090715/Ohana/src/kapa2/src/CheckVisual.c	(revision 24990)
@@ -37,4 +37,16 @@
   isColor = isDefault = FALSE;
 
+  // attempt to select the most desirable type of visual: TrueColor
+  for (i = 0; (i < Nfound) && (visual_list[i].class != TrueColor); i++);
+  if (i != Nfound) {
+    isColor = TRUE;
+    if (DEBUG) fprintf (stderr, "visual class is %d\n", visual_list[i].class);
+    isDefault = (graphic[0].visual == visual_list[i].visual);
+    graphic[0].visual = visual_list[i].visual;
+    graphic[0].dynamicColors = FALSE;
+    if (DEBUG) fprintf (stderr, "got TrueColor visual\n");
+    goto test_pixels;
+  }
+
   // attempt to select the most desirable type of visual: DirectColor
   for (i = 0; (i < Nfound) && (visual_list[i].class != DirectColor); i++);
@@ -46,16 +58,4 @@
     graphic[0].dynamicColors = TRUE;
     if (DEBUG) fprintf (stderr, "got DirectColor visual\n");
-    goto test_pixels;
-  }
-
-  // attempt to select the most desirable type of visual: TrueColor
-  for (i = 0; (i < Nfound) && (visual_list[i].class != TrueColor); i++);
-  if (i != Nfound) {
-    isColor = TRUE;
-    if (DEBUG) fprintf (stderr, "visual class is %d\n", visual_list[i].class);
-    isDefault = (graphic[0].visual == visual_list[i].visual);
-    graphic[0].visual = visual_list[i].visual;
-    graphic[0].dynamicColors = FALSE;
-    if (DEBUG) fprintf (stderr, "got TrueColor visual\n");
     goto test_pixels;
   }
