X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ftestx11.c;h=554c704e4e1bfd87b5407d10482e91bc4e30d39a;hp=8284d16b41c75f050cdcd279498fdbaaac78e9ac;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/testx11.c b/hacks/testx11.c index 8284d16b..554c704e 100644 --- a/hacks/testx11.c +++ b/hacks/testx11.c @@ -1,4 +1,4 @@ -/* testx11.c, Copyright (c) 2015-2016 Dave Odell +/* testx11.c, Copyright (c) 2015-2017 Dave Odell * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -311,7 +311,7 @@ testx11_init (Display *dpy, Window win) st->copy_pix64 = XCreatePixmap(dpy, win, 64, 64, st->xgwa.depth); - st->primitives_mini_pix = XCreatePixmap (dpy, win, 16, 16, st->xgwa.depth); + st->primitives_mini_pix = XCreatePixmap (dpy, win, 16, 24, st->xgwa.depth); { static const char text[] = "Welcome from testx11_init()."; @@ -690,6 +690,7 @@ testx11_draw (Display *dpy, Window win, void *st_raw) /* Box 2 */ { XImage *image = XGetImage(st->dpy, t, 55, 55, 15, 15, 0xffffff, ZPixmap); + XPutPixel(image, 2, 0, 0x00000000); XPutImage (dpy, t, st->copy_gc, image, 0, 0, 88, 55, 15, 15); XDestroyImage(image); } @@ -709,6 +710,7 @@ testx11_draw (Display *dpy, Window win, void *st_raw) XDrawPoint (dpy, t, st->copy_gc, 104 + 8, 55 + 8); XDrawPoint (dpy, st->primitives_mini_pix, st->copy_gc, 0, 0); + XDrawPoint (dpy, st->primitives_mini_pix, st->copy_gc, 1, 0); XDrawPoint (dpy, st->primitives_mini_pix, st->copy_gc, 15, 15); XDrawRectangle (dpy, st->primitives_mini_pix, st->copy_gc, 1, 1, 13, 13);