{
".background: white",
".foreground: black",
+ "*fpsSolid: true",
"*maxCycles: 100000",
#ifdef TIME_ME
"*growthDelay: 0",
"*baseOrbits: 75",
"*baseOnCenter: False",
"*drawCenters: False",
+#ifdef HAVE_MOBILE
+ "*ignoreRotation: True",
+#endif
0
};
{
case 32:
case 24:
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
/* This program idiotically does not go through a color map, so
we have to hardcode in knowledge of how jwxyz.a packs pixels!
Fix it to go through st->colors[st->ncolors] instead!
#endif
break;
case 16:
- *b = (c & 0x1f) << 3;
- *g = ((c >> 5) & 0x3f) << 2;
- *r = ((c >> 11) & 0x1f) << 3;
+ *b = (int) (c & 0x1f) << 3;
+ *g = (int) ((c >> 5) & 0x3f) << 2;
+ *r = (int) ((c >> 11) & 0x1f) << 3;
break;
case 15:
- *b = (c & 0x1f) << 3;
- *g = ((c >> 5) & 0x1f) << 3;
- *r = ((c >> 10) & 0x1f) << 3;
+ *b = (int) (c & 0x1f) << 3;
+ *g = (int) ((c >> 5) & 0x1f) << 3;
+ *r = (int) ((c >> 10) & 0x1f) << 3;
break;
}
}
switch(depth)
{
case 32:
- ret = 0xff000000;
case 24:
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
/* This program idiotically does not go through a color map, so
we have to hardcode in knowledge of how jwxyz.a packs pixels!
Fix it to go through st->colors[st->ncolors] instead!
;
}
+ if (f->numcolors < 1) f->numcolors = 1;
f->parsedcolors = (unsigned long *) calloc(f->numcolors,
sizeof(unsigned long));
if ( f->parsedcolors == NULL )
static Bool
interaggregate_event (Display *dpy, Window window, void *closure, XEvent *event)
{
+ struct state *st = (struct state *) closure;
+ if (screenhack_event_helper (dpy, window, event))
+ {
+ st->f->height--; /* act like a resize */
+ return True;
+ }
return False;
}