X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmoire2.c;h=96bfd9ac0e4a1c87b8801f8144c9c5f87d9085c1;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=463478c674a6429287cf4e92dd2c131e646ec5e7;hpb=6bb727f03bff0389fbb1349d7df4c9d8d7532959;p=xscreensaver diff --git a/hacks/moire2.c b/hacks/moire2.c index 463478c6..96bfd9ac 100644 --- a/hacks/moire2.c +++ b/hacks/moire2.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997, 1998 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 @@ -13,7 +13,7 @@ #include #include -static int ncolors, color_shift; +static int ncolors; static XColor *colors = 0; static int fg_pixel, bg_pixel; static Pixmap p0 = 0, p1 = 0, p2 = 0, p3 = 0; @@ -207,8 +207,8 @@ moire2 (Display *dpy, Window window) char *progclass = "Moire2"; char *defaults [] = { - "Moire2.background: black", /* to placate SGI */ - "Moire2.foreground: white", + ".background: black", + ".foreground: white", "*delay: 50000", "*thickness: 0", "*colors: 150", @@ -270,6 +270,7 @@ screenhack (Display *dpy, Window window) for (i = 0; i < color_shift; i++) { moire2 (dpy, window); + screenhack_handle_events (dpy); if (delay) usleep(delay); }