X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fanemone.c;h=f69e0967f1354a29cb592eae9b2f16c4651f7e11;hp=0cf342ea4c1d4f27c9c5712ef89c583f64673026;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/anemone.c b/hacks/anemone.c index 0cf342ea..f69e0967 100644 --- a/hacks/anemone.c +++ b/hacks/anemone.c @@ -380,11 +380,20 @@ static void anemone_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { - /* need to re-make pixmaps too... struct state *st = (struct state *) closure; st->scrWidth = w; st->scrHeight = h; - */ +#if 0 + if (st->dbuf) { + XWindowAttributes wa; + XGetWindowAttributes(dpy, window, &wa); + if (st->ba) XFreePixmap (dpy, st->ba); + if (st->bb) XFreePixmap (dpy, st->bb); + st->ba = XCreatePixmap (dpy, window, st->scrWidth, st->scrHeight, wa.depth); + st->bb = XCreatePixmap (dpy, window, st->scrWidth, st->scrHeight, wa.depth); + st->b = st->ba; + } +#endif } static Bool