X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fanemone.c;h=9f65145aff3985916964a63c3816630b4e76bdd0;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=f69e0967f1354a29cb592eae9b2f16c4651f7e11;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/anemone.c b/hacks/anemone.c index f69e0967..9f65145a 100644 --- a/hacks/anemone.c +++ b/hacks/anemone.c @@ -1,4 +1,4 @@ -/* anemon, Copyright (c) 2001 Gabriel Finch +/* anemone, Copyright (c) 2001 Gabriel Finch * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -211,7 +211,8 @@ anemone_init (Display *disp, Window window) st->ncolors = get_integer_resource (st->dpy, "colors", "Colors"); st->ncolors += 3; st->colors = (XColor *) malloc(sizeof(*st->colors) * (st->ncolors+1)); - make_smooth_colormap (st->dpy, wa.visual, st->cmap, st->colors, &st->ncolors, + make_smooth_colormap (wa.screen, wa.visual, st->cmap, + st->colors, &st->ncolors, True, 0, True); st->gcDraw = XCreateGC(st->dpy, window, 0, &st->gcv); @@ -425,6 +426,9 @@ static const char *anemone_defaults [] = { #ifdef HAVE_DOUBLE_BUFFER_EXTENSION "*useDBE: True", #endif /* HAVE_DOUBLE_BUFFER_EXTENSION */ +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };