Lines Matching refs:depth
141 static int depth;
449 depth = DisplayPlanes(display, screen);
458 if (/* depth != 8 && */ depth != 16 && depth != 24 && depth != 32) {
460 "screen depth %d not supported (only 16-, 24- or 32-bit TrueColor)\n",
461 depth);
465 XMatchVisualInfo(display, screen, depth,
466 (depth == 8)? PseudoColor : TrueColor, &visual_info);
469 if (depth != 16 && depth != 24 && depth != 32) {
472 Trace((stderr, "default depth is %d: checking other visuals\n",
473 depth))
477 visual_info.depth = 24;
482 fprintf(stderr, "default screen depth %d not supported, and no"
483 " 24-bit visuals found\n", depth);
489 depth = visual_list[0].depth;
498 depth, TrueColor, &visual_info);
508 if (depth == 8 || need_colormap) {
516 if (depth == 15 || depth == 16) {
520 } else if (depth > 16) {
532 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) {
552 depth, InputOutput, visual, attrmask, &attr);
560 if (depth == 8)
613 if (depth == 24 || depth == 32) {
617 } else if (depth == 16) {
621 } else /* depth == 8 */ {
644 if (depth == 24 || depth == 32) {
647 } else if (depth == 16) {
650 } else /* depth == 8 */ {
660 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
705 if (depth == 24 || depth == 32) {
779 } else if (depth == 16) {
842 } else /* depth == 8 */ {