X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fccurve.c;h=6f547bea4f51ed2b46849d14e64455081a86364a;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=9e7e2de3ca53e197a0c03958a2cd5beb1e5624c2;hpb=ec8d2b32b63649e6d32bdfb306eda062769af823;p=xscreensaver 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