X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Funknownpleasures.c;h=eac67f44ae74c5c6f828fc097b3fc10936eb89ca;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hp=640fd3d74482be86e37934e159a386a0d48d846d;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;p=xscreensaver diff --git a/hacks/glx/unknownpleasures.c b/hacks/glx/unknownpleasures.c index 640fd3d7..eac67f44 100644 --- a/hacks/glx/unknownpleasures.c +++ b/hacks/glx/unknownpleasures.c @@ -13,7 +13,7 @@ * * Interestingly, the original image is copyright-free: * http://adamcap.com/2011/05/19/history-of-joy-division-unknown-pleasures-album-art/ - * http://en.wikipedia.org/wiki/Unknown_Pleasures + * https://en.wikipedia.org/wiki/Unknown_Pleasures * * TODO: * @@ -175,14 +175,7 @@ init_unk (ModeInfo *mi) { unk_configuration *bp; - if (!bps) { - bps = (unk_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (unk_configuration)); - if (!bps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, bps, NULL); bp = &bps[MI_SCREEN(mi)]; @@ -365,7 +358,7 @@ draw_unk (ModeInfo *mi) xinc *= 3; } -# ifdef USE_IPHONE +# ifdef HAVE_MOBILE /* Lower it even further for iPhone 3 */ if (mi->xgwa.width <= 480 || mi->xgwa.height <= 480) { @@ -379,7 +372,7 @@ draw_unk (ModeInfo *mi) xinc *= 2; */ -# endif /* USE_IPHONE */ +# endif /* USE_MOBILE */ /* Make the image fill the screen a little more fully */