X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fimsmap.c;h=1877243dcf00c2bce88dddb93a0fda7871f73fe1;hp=f329a86cb369567394a2b840a3654eeb5572b585;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/imsmap.c b/hacks/imsmap.c index f329a86c..1877243d 100644 --- a/hacks/imsmap.c +++ b/hacks/imsmap.c @@ -186,6 +186,7 @@ init_map (struct state *st) if (!mono_p) { + if (st->ncolors < 1) st->ncolors = 1; st->colors = (XColor *) malloc (st->ncolors * sizeof(*st->colors)); make_smooth_colormap (st->xgwa.screen, st->xgwa.visual, st->cmap, @@ -401,7 +402,7 @@ static const char *imsmap_defaults [] = { "*iterations: 7", "*delay: 5", "*delay2: 20000", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0