Lines Matching refs:depth
143 static int depth; variable
455 depth = DisplayPlanes(display, screen); in rpng_x_create_window()
464 if (/* depth != 8 && */ depth != 16 && depth != 24 && depth != 32) { in rpng_x_create_window()
467 depth); in rpng_x_create_window()
471 XMatchVisualInfo(display, screen, depth, in rpng_x_create_window()
472 (depth == 8)? PseudoColor : TrueColor, &visual_info); in rpng_x_create_window()
475 if (depth != 16 && depth != 24 && depth != 32) { in rpng_x_create_window()
479 depth)) in rpng_x_create_window()
483 visual_info.depth = 24; in rpng_x_create_window()
489 " 24-bit visuals found\n", depth); in rpng_x_create_window()
495 depth = visual_list[0].depth; in rpng_x_create_window()
504 XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info); in rpng_x_create_window()
514 if (depth == 8 || need_colormap) { in rpng_x_create_window()
522 if (depth == 15 || depth == 16) { in rpng_x_create_window()
526 } else if (depth > 16) { in rpng_x_create_window()
538 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) { in rpng_x_create_window()
558 depth, InputOutput, visual, attrmask, &attr); in rpng_x_create_window()
566 if (depth == 8) in rpng_x_create_window()
619 if (depth == 24 || depth == 32) { in rpng_x_create_window()
623 } else if (depth == 16) { in rpng_x_create_window()
650 if (depth == 24 || depth == 32) { in rpng_x_create_window()
653 } else if (depth == 16) { in rpng_x_create_window()
666 ximage = XCreateImage(display, visual, depth, ZPixmap, 0, in rpng_x_create_window()
711 if (depth == 24 || depth == 32) { in rpng_x_display_image()
785 } else if (depth == 16) { in rpng_x_display_image()