X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxrayswarm.c;h=d36055de7608386a99912173d7309626dc4fb647;hb=2762a7d7cf8d83e68b8f635941f6609119d630ae;hp=9b9faef799d9b53658c5c9bbade18c6a6cb63def;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/hacks/xrayswarm.c b/hacks/xrayswarm.c index 9b9faef7..d36055de 100644 --- a/hacks/xrayswarm.c +++ b/hacks/xrayswarm.c @@ -63,6 +63,9 @@ static const char *xrayswarm_defaults [] ={ ".background: black", "*delay: 20000", "*fpsSolid: true", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 }; @@ -1196,6 +1199,12 @@ static void xrayswarm_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->xsize = w; + st->ysize = h; + st->xc = st->xsize >> 1; + st->yc = st->ysize >> 1; + st->maxy = st->ysize/(float)st->xsize; } static Bool