• Home
  • Raw
  • Download

Lines Matching refs:depth

141 static int depth;  variable
449 depth = DisplayPlanes(display, screen); in rpng_x_create_window()
458 if (/* depth != 8 && */ depth != 16 && depth != 24 && depth != 32) { in rpng_x_create_window()
461 depth); in rpng_x_create_window()
465 XMatchVisualInfo(display, screen, depth, in rpng_x_create_window()
466 (depth == 8)? PseudoColor : TrueColor, &visual_info); in rpng_x_create_window()
469 if (depth != 16 && depth != 24 && depth != 32) { in rpng_x_create_window()
473 depth)) in rpng_x_create_window()
477 visual_info.depth = 24; in rpng_x_create_window()
483 " 24-bit visuals found\n", depth); in rpng_x_create_window()
489 depth = visual_list[0].depth; in rpng_x_create_window()
498 XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info); in rpng_x_create_window()
508 if (depth == 8 || need_colormap) { in rpng_x_create_window()
516 if (depth == 15 || depth == 16) { in rpng_x_create_window()
520 } else if (depth > 16) { in rpng_x_create_window()
532 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) { in rpng_x_create_window()
552 depth, InputOutput, visual, attrmask, &attr); in rpng_x_create_window()
560 if (depth == 8) in rpng_x_create_window()
613 if (depth == 24 || depth == 32) { in rpng_x_create_window()
617 } else if (depth == 16) { in rpng_x_create_window()
644 if (depth == 24 || depth == 32) { in rpng_x_create_window()
647 } else if (depth == 16) { in rpng_x_create_window()
660 ximage = XCreateImage(display, visual, depth, ZPixmap, 0, in rpng_x_create_window()
705 if (depth == 24 || depth == 32) { in rpng_x_display_image()
779 } else if (depth == 16) { in rpng_x_display_image()