X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmoire2.c;h=dad9d660a8f28b724ca0005ab5e39824a6030a2c;hb=39809ded547bdbb08207d3e514950425215b4410;hp=441a371371bda38ba5c39d75cdfca3e1e16f6e2d;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/moire2.c b/hacks/moire2.c index 441a3713..dad9d660 100644 --- a/hacks/moire2.c +++ b/hacks/moire2.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997, 1998, 2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997-2013 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -64,7 +64,8 @@ moire2_init_1 (struct state *st) if (mono_p) ; else - make_smooth_colormap (st->dpy, xgwa.visual, xgwa.colormap, st->colors, &st->ncolors, + make_smooth_colormap (xgwa.screen, xgwa.visual, xgwa.colormap, + st->colors, &st->ncolors, True, 0, True); st->bg_pixel = get_pixel_resource(st->dpy, @@ -322,12 +323,16 @@ moire2_free (Display *dpy, Window window, void *closure) } static const char *moire2_defaults [] = { + ".lowrez: true", ".background: black", ".foreground: white", "*delay: 50000", "*thickness: 0", "*colors: 150", "*colorShift: 5", +#ifdef HAVE_MOBILE + "*ignoreRotation: True", +#endif #ifdef HAVE_DOUBLE_BUFFER_EXTENSION /* Off by default, since it slows it down a lot, and the flicker isn't really