# include <unistd.h>
#endif
-#ifndef HAVE_COCOA
+#ifndef HAVE_JWXYZ
# include <X11/Intrinsic.h> /* for XtDatabase in hack_resources() */
#endif
chansetting *cs;
int change_now;
-
+ int colorbars_only_p;
};
ypos=ANALOGTV_V/5;
xpos=ANALOGTV_VIS_START + ANALOGTV_VIS_LEN/2;
+ if (! st->colorbars_only_p)
{
char localname[256];
if (gethostname (localname, sizeof (localname))==0) {
}
ypos += st->ugly_font.char_h*5/2;
- analogtv_draw_xpm(st->tv, input,
- logo_50_xpm, xpos - 100, ypos);
+ if (! st->colorbars_only_p)
+ analogtv_draw_xpm(st->tv, input,
+ logo_50_xpm, xpos - 100, ypos);
ypos += 58;
ypos += st->ugly_font.char_h*4;
#endif
+ if (! st->colorbars_only_p)
{
char timestamp[256];
time_t t = time ((time_t *) 0);
".background: black",
".foreground: white",
"*delay: 5",
- "*grabDesktopImages: False", /* HAVE_COCOA */
- "*chooseRandomImages: True", /* HAVE_COCOA */
+ "*grabDesktopImages: False", /* HAVE_JWXYZ */
+ "*chooseRandomImages: True", /* HAVE_JWXYZ */
ANALOGTV_DEFAULTS
0,
};
static XrmOptionDescRec xanalogtv_options [] = {
{ "-delay", ".delay", XrmoptionSepArg, 0 },
+ { "-colorbars-only", ".colorbarsOnly", XrmoptionNoArg, "True" },
ANALOGTV_OPTIONS
{ 0, 0, 0, 0 }
};
static void
hack_resources (Display *dpy)
{
-#ifndef HAVE_COCOA
+#ifndef HAVE_JWXYZ
static int count = -1;
count++;
value.size = strlen(buf2);
XrmPutResource (&db, buf1, "String", &value);
}
-#endif /* HAVE_COCOA */
+#endif /* HAVE_JWXYZ */
}
analogtv_input *input = st->stations[i];
st->chansettings[i].image_loaded_p = True;
- if (i == 0) { /* station 0 is always colorbars */
+ if (i == 0 || /* station 0 is always colorbars */
+ st->colorbars_only_p) {
input->updater = update_smpte_colorbars;
input->do_teletext=1;
}
st->window = window;
st->tv=analogtv_allocate(dpy, window);
+ st->colorbars_only_p =
+ get_boolean_resource(dpy, "colorbarsOnly", "ColorbarsOnly");
+
add_stations(st);
analogtv_set_defaults(st->tv, "");
}
analogtv_draw(st->tv, st->cs->noise_level, recs, rec_count);
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
return 0;
#else
return 5000;