Lines Matching defs:depth
276 static int depth;
826 depth = DisplayPlanes(display, screen);
833 if (depth != 16 && depth != 24 && depth != 32) {
836 Trace((stderr, "default depth is %d: checking other visuals\n",
837 depth))
841 visual_info.depth = 24;
846 fprintf(stderr, "default screen depth %d not supported, and no"
847 " 24-bit visuals found\n", depth);
853 depth = visual_list[0].depth;
862 XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info);
871 if (depth == 8 || need_colormap) {
878 if (depth == 8)
881 if (depth == 15 || depth == 16) {
885 } else if (depth > 16) {
890 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) {
910 rpng2_info.height, 0, depth, InputOutput, visual, attrmask, &attr);
918 if (depth == 8)
972 if (depth == 24 || depth == 32) {
975 } else if (depth == 16) {
978 } else /* depth == 8 */ {
988 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
1016 if (depth == 24 || depth == 32) {
1020 } else if (depth == 16) {
1024 } else /* depth == 8 */ {
1273 if (depth == 24 || depth == 32) {
1312 } else if (depth == 16) {
1331 } else /* depth == 8 */ {
1393 (over rows) and moving the XPutImage() call outside the "if (depth)"
1398 if (depth == 24 || depth == 32) {
1474 } else if (depth == 16) {
1535 } else /* depth == 8 */ {
1618 if (depth == 24 || depth == 32) {
1746 } else if (depth == 16) {
1816 } else /* depth == 8 */ {