X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Finteraggregate.c;h=f83677760a09adfe368f7336aaf7698acb397014;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=986acd5327a0292b23bdf5e52b1cd7efe1a6b211;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/interaggregate.c b/hacks/interaggregate.c index 986acd53..f8367776 100644 --- a/hacks/interaggregate.c +++ b/hacks/interaggregate.c @@ -85,6 +85,9 @@ static const char *interaggregate_defaults[] = "*baseOrbits: 75", "*baseOnCenter: False", "*drawCenters: False", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 }; @@ -290,7 +293,6 @@ static inline unsigned long rgb2point(int depth, int r, int g, int b) switch(depth) { case 32: - ret = 0xff000000; case 24: #ifdef HAVE_COCOA /* This program idiotically does not go through a color map, so @@ -958,6 +960,12 @@ interaggregate_reshape (Display *dpy, Window window, void *closure, static Bool interaggregate_event (Display *dpy, Window window, void *closure, XEvent *event) { + struct state *st = (struct state *) closure; + if (screenhack_event_helper (dpy, window, event)) + { + st->f->height--; /* act like a resize */ + return True; + } return False; }