Lines Matching defs:display
3 rpng - simple PNG display program rpng-x.c
28 - 2.01: fixed improper display of usage screen on PNG error(s)
56 software must display the following acknowledgment:
140 static Display *display;
173 double default_display_exponent; /* whole display system */
182 /* First set the default value for our display-system exponent, i.e.,
236 if (!strncmp(*argv, "-display", 2)) {
279 "Usage: %s [-display xdpy] [-gamma exp] [-bgcolor bg] file.png\n"
280 " xdpy\tname of the target X display (e.g., ``hostname:0'')\n"
281 " exp \ttransfer-function exponent (``gamma'') of the display\n"
320 display = XOpenDisplay(displayname);
321 if (!display) {
323 fprintf(stderr, PROGNAME ": can't open X display [%s]\n",
395 /* display image (composite with background if requested) */
412 XNextEvent(display, &e);
448 screen = DefaultScreen(display);
449 depth = DisplayPlanes(display, screen);
450 root = RootWindow(display, screen);
453 XSynchronize(display, True);
465 XMatchVisualInfo(display, screen, depth,
478 visual_list = XGetVisualInfo(display,
498 display, screen, depth, TrueColor, &visual_info);
509 colormap = XCreateColormap(display, root, visual, AllocNone);
551 window = XCreateWindow(display, root, 0, 0, image_width, image_height, 0,
561 XSetWindowColormap(display, window, colormap);
589 XSetWMProperties(display, window, pWindowName, pIconName, NULL, 0,
604 XMapWindow(display, window);
606 gc = XCreateGC(display, window, 0, &gcvalues);
627 XSetForeground(display, gc, bg_pixel);
628 XFillRectangle(display, window, gc, 0, 0, image_width, image_height);
635 XNextEvent(display, &e);
638 XFlush(display);
641 Allocate memory for the X- and display-specific version of the image.
660 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
697 Trace((stderr, "beginning display loop (image_channels == %d)\n",
770 /* display after every 16 lines */
772 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
774 XFlush(display);
833 /* display after every 16 lines */
835 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
837 XFlush(display);
850 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
852 XFlush(display);
878 XFreeGC(display, gc);
881 XDestroyWindow(display, window);
884 XFreeColormap(display, colormap);