/* -*- Mode: C; tab-width: 4 -*- */
/* juggle */
-#if !defined( lint ) && !defined( SABER )
+#if 0
static const char sccsid[] = "@(#)juggle.c 5.10 2003/09/02 xlockmore";
-
#endif
/*-
"*count: 200 \n" \
"*cycles: 1000 \n" \
"*ncolors: 32 \n" \
- "*font: -*-times-bold-r-normal-*-180-*\n"
+ "*font: -*-helvetica-bold-r-normal-*-180-*\n" \
+ "*fpsSolid: true\n" \
+
# define refresh_juggle 0
# define juggle_handle_event 0
# undef SMOOTH_COLORS
jugglestruct *sp = 0;
int i;
- if (juggles == NULL) { /* First-time initialisation */
-
- /* allocate jugglestruct */
- if ((juggles =
- (jugglestruct *)calloc(MI_NUM_SCREENS(mi),
- sizeof (jugglestruct))) == NULL) {
- release_juggle(mi);
- return;
- }
- }
-
+ MI_INIT (mi, juggles, 0);
sp = &juggles[MI_SCREEN(mi)];
if (only && *only && strcmp(only, " ")) {
sp->scale = MIN(MI_HEIGHT(mi)/480.0, MI_WIDTH(mi)/160.0);
if(describe && !sp->mode_font) { /* Check to see if there's room to describe patterns. */
- sp->mode_font = XQueryFont(MI_DISPLAY(mi), XGContextFromGC(MI_GC(mi)));
+ char *font = get_string_resource (MI_DISPLAY(mi), "font", "Font");
+ sp->mode_font = XLoadQueryFont(MI_DISPLAY(mi), font);
}
}
MI_IS_DRAWN(mi) = True;
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
/* Don't worry about flicker, trust Quartz's double-buffering.
This is a fast fix for the pixel-turds I can't track down...
*/