X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Ftruchet.c;h=d0276f7825d02d1a0b3c709e120ced4515884e21;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=b23b081de89f040add001cad7cbb290ed6600bb2;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/truchet.c b/hacks/truchet.c index b23b081d..d0276f78 100644 --- a/hacks/truchet.c +++ b/hacks/truchet.c @@ -61,6 +61,9 @@ static const char *truchet_defaults [] = { "*anim-delay: 100", "*anim-step-size: 3", "*randomize: true", +#ifdef HAVE_MOBILE + "*ignoreRotation: True", +#endif 0 }; @@ -375,6 +378,9 @@ truchet_init (Display *dpy, Window window) st->frame = XCreatePixmap(st->dpy,st->window, st->xgwa.width+st->overlap, st->xgwa.height+st->overlap, st->xgwa.depth); + XFillRectangle(st->dpy, st->frame, st->bgc, 0, 0, + st->xgwa.width + st->overlap, + st->xgwa.height + st->overlap); return st; } @@ -508,6 +514,10 @@ static void truchet_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->width = w; + st->height = h; + XGetWindowAttributes (st->dpy, st->window, &st->xgwa); } static Bool