Changeset 24990
- Timestamp:
- Aug 4, 2009, 8:38:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/Ohana/src/kapa2/src/CheckVisual.c
r24800 r24990 37 37 isColor = isDefault = FALSE; 38 38 39 // attempt to select the most desirable type of visual: TrueColor 40 for (i = 0; (i < Nfound) && (visual_list[i].class != TrueColor); i++); 41 if (i != Nfound) { 42 isColor = TRUE; 43 if (DEBUG) fprintf (stderr, "visual class is %d\n", visual_list[i].class); 44 isDefault = (graphic[0].visual == visual_list[i].visual); 45 graphic[0].visual = visual_list[i].visual; 46 graphic[0].dynamicColors = FALSE; 47 if (DEBUG) fprintf (stderr, "got TrueColor visual\n"); 48 goto test_pixels; 49 } 50 39 51 // attempt to select the most desirable type of visual: DirectColor 40 52 for (i = 0; (i < Nfound) && (visual_list[i].class != DirectColor); i++); … … 46 58 graphic[0].dynamicColors = TRUE; 47 59 if (DEBUG) fprintf (stderr, "got DirectColor visual\n"); 48 goto test_pixels;49 }50 51 // attempt to select the most desirable type of visual: TrueColor52 for (i = 0; (i < Nfound) && (visual_list[i].class != TrueColor); i++);53 if (i != Nfound) {54 isColor = TRUE;55 if (DEBUG) fprintf (stderr, "visual class is %d\n", visual_list[i].class);56 isDefault = (graphic[0].visual == visual_list[i].visual);57 graphic[0].visual = visual_list[i].visual;58 graphic[0].dynamicColors = FALSE;59 if (DEBUG) fprintf (stderr, "got TrueColor visual\n");60 60 goto test_pixels; 61 61 }
Note:
See TracChangeset
for help on using the changeset viewer.
