X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fgreynetic.c;h=dc71f75015c27baa95d061817fa218360da9dee1;hb=refs%2Fremotes%2Fgithub%2Fmaster2;hp=2496cdf55fd258922d0c19c174a7ff2ad78528e5;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/greynetic.c b/hacks/greynetic.c index 2496cdf5..dc71f750 100644 --- a/hacks/greynetic.c +++ b/hacks/greynetic.c @@ -234,7 +234,7 @@ greynetic_draw (Display *dpy, Window window, void *closure) { /* give a non-opaque alpha to the color */ unsigned long pixel = gcv.foreground; - unsigned long amask = BlackPixelOfScreen (0); + unsigned long amask = BlackPixel (dpy,0); unsigned long a = (random() & amask); pixel = (pixel & (~amask)) | a; gcv.foreground = pixel; @@ -257,6 +257,9 @@ static const char *greynetic_defaults [] = { "*fpsSolid: true", "*delay: 10000", "*grey: false", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };