X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Frd-bomb.c;h=3e9acbc50e3a5e95d0d892537fd70adab94af867;hp=0c074ea49f442e928539ab323da3f939e9af6383;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/rd-bomb.c b/hacks/rd-bomb.c index 0c074ea4..3e9acbc5 100644 --- a/hacks/rd-bomb.c +++ b/hacks/rd-bomb.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2013 Jamie Zawinski * * reaction/diffusion textures * Copyright (c) 1997 Scott Draves spot@transmeta.com @@ -308,6 +308,9 @@ static const char *rd_defaults [] = { "*useSHM: True", #else "*useSHM: False", +#endif +#ifdef USE_IPHONE + "*ignoreRotation: True", #endif 0 }; @@ -333,7 +336,8 @@ static void random_colors(struct state *st) { memset(st->colors, 0, st->ncolors*sizeof(*st->colors)); - make_smooth_colormap (st->dpy, st->visual, st->cmap, st->colors, &st->ncolors, + make_smooth_colormap (st->xgwa.screen, st->visual, st->cmap, + st->colors, &st->ncolors, True, 0, True); if (st->ncolors <= 2) { mono_p = True;