X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fccurve.c;h=6f547bea4f51ed2b46849d14e64455081a86364a;hp=9e7e2de3ca53e197a0c03958a2cd5beb1e5624c2;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/ccurve.c b/hacks/ccurve.c index 9e7e2de3..6f547bea 100644 --- a/hacks/ccurve.c +++ b/hacks/ccurve.c @@ -813,6 +813,14 @@ static void ccurve_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + XWindowAttributes xgwa; + st->width = w; + st->height = h; + XGetWindowAttributes (st->dpy, st->window, &xgwa); + XFreePixmap (dpy, st->pixmap); + st->pixmap = XCreatePixmap (st->dpy, st->window, st->width, st->height, + xgwa.depth); } static Bool