Home | History | Annotate | Download | only in gregbook

Lines Matching refs:display

3    rpng - simple PNG display program                               rpng-x.c
28 - 2.01: fixed improper display of usage screen on PNG error(s)
58 software must display the following acknowledgment:
142 static Display *display;
175 double default_display_exponent; /* whole display system */
184 /* First set the default value for our display-system exponent, i.e.,
238 if (!strncmp(*argv, "-display", 2)) {
281 "Usage: %s [-display xdpy] [-gamma exp] [-bgcolor bg] file.png\n"
282 " xdpy\tname of the target X display (e.g., ``hostname:0'')\n"
283 " exp \ttransfer-function exponent (``gamma'') of the display\n"
324 display = XOpenDisplay(displayname);
325 if (!display) {
327 fprintf(stderr, PROGNAME ": can't open X display [%s]\n",
399 /* display image (composite with background if requested) */
416 XNextEvent(display, &e);
454 screen = DefaultScreen(display);
455 depth = DisplayPlanes(display, screen);
456 root = RootWindow(display, screen);
459 XSynchronize(display, True);
471 XMatchVisualInfo(display, screen, depth,
484 visual_list = XGetVisualInfo(display,
504 XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info);
515 colormap = XCreateColormap(display, root, visual, AllocNone);
557 window = XCreateWindow(display, root, 0, 0, image_width, image_height, 0,
567 XSetWindowColormap(display, window, colormap);
595 XSetWMProperties(display, window, pWindowName, pIconName, NULL, 0,
610 XMapWindow(display, window);
612 gc = XCreateGC(display, window, 0, &gcvalues);
633 XSetForeground(display, gc, bg_pixel);
634 XFillRectangle(display, window, gc, 0, 0, image_width, image_height);
641 XNextEvent(display, &e);
644 XFlush(display);
647 Allocate memory for the X- and display-specific version of the image.
666 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
703 Trace((stderr, "beginning display loop (image_channels == %d)\n",
776 /* display after every 16 lines */
778 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
780 XFlush(display);
839 /* display after every 16 lines */
841 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
843 XFlush(display);
856 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
858 XFlush(display);
884 XFreeGC(display, gc);
887 XDestroyWindow(display, window);
890 XFreeColormap(display, colormap);