Lines Matching refs:depth
275 static int depth;
846 depth = DisplayPlanes(display, screen);
853 if (depth != 16 && depth != 24 && depth != 32) {
856 Trace((stderr, "default depth is %d: checking other visuals\n",
857 depth))
861 visual_info.depth = 24;
866 fprintf(stderr, "default screen depth %d not supported, and no"
867 depth);
873 depth = visual_list[0].depth;
882 XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info);
891 if (depth == 8 || need_colormap) {
898 if (depth == 8)
901 if (depth == 15 || depth == 16) {
905 } else if (depth > 16) {
910 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) {
930 rpng2_info.height, 0, depth, InputOutput, visual, attrmask, &attr);
938 if (depth == 8)
992 if (depth == 24 || depth == 32) {
995 } else if (depth == 16) {
998 } else /* depth == 8 */ {
1008 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
1036 if (depth == 24 || depth == 32) {
1040 } else if (depth == 16) {
1044 } else /* depth == 8 */ {
1293 if (depth == 24 || depth == 32) {
1332 } else if (depth == 16) {
1351 } else /* depth == 8 */ {
1413 (over rows) and moving the XPutImage() call outside the "if (depth)"
1418 if (depth == 24 || depth == 32) {
1494 } else if (depth == 16) {
1555 } else /* depth == 8 */ {
1638 if (depth == 24 || depth == 32) {
1766 } else if (depth == 16) {
1836 } else /* depth == 8 */ {