of the command-line options provided by screenhack.c.
*/
-#ifndef HAVE_COCOA
+#ifndef HAVE_JWXYZ
# define FASTDRAW
# define FASTCOPY
-#endif /* !HAVE_COCOA */
+#endif /* !HAVE_JWXYZ */
#include <stdio.h>
#include <math.h>
st->planes=st->xgwa.depth;
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
# define GXandInverted GXcopy /* #### this can't be right, right? */
#endif
st->gc = XCreateGC (st->dpy, st->window, 0, xgc);
else if(-ra<40.0) inc=2;
if(setcol)
{
- if (m==27) col=33;
+ if (m==27)
+ col=33;
else
col=(int)(m);
- if (col>33) col=33; col/=3;
+
+ if (col>33)
+ col=33;
+
+ col/=3;
setink(st->colors[col].pixel);
}
struct state *st = (struct state *) closure;
if (event->type == KeyPress)
{
- KeySym kpr=XKeycodeToKeysym(st->dpy,event->xkey.keycode,0);
-
+ KeySym keysym;
+ char kpr = 0;
+ XLookupString (&event->xkey, &kpr, 1, &keysym, 0);
switch (kpr)
{
case 's': case 'S':
"*move: 0.5",
"*wobble: 2.0",
"*cycle: 10.0",
- "*mag: 1",
+ "*mag: 1.0",
"*minutes: False",
"*delay: 40000",
"*fast: 50",