X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fqix.c;h=924b5422595c810d907477673f5c7fb58e1c3dca;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=ed3ac0a05b68a95a8c8fff5c63ddf2b700319e77;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/qix.c b/hacks/qix.c index ed3ac0a0..924b5422 100644 --- a/hacks/qix.c +++ b/hacks/qix.c @@ -1,5 +1,5 @@ -/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992, 1995, 1996, 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 @@ -18,8 +18,8 @@ #define SCALE 6 struct qpoint { - long x, y; - long dx, dy; + int x, y; + int dx, dy; }; struct qline { @@ -454,8 +454,8 @@ qix1 (Display *dpy, Window window, struct qix *qix) char *progclass = "Qix"; char *defaults [] = { - "Qix.background: black", /* to placate SGI */ - "Qix.foreground: white", + ".background: black", + ".foreground: white", "*count: 1", "*segments: 50", "*poly: 2", @@ -504,7 +504,8 @@ screenhack (Display *dpy, Window window) for (qn = q1; *qn; qn++) { qix1 (dpy, window, *qn); - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); if (delay) usleep (delay); } }