X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ftwang.c;fp=hacks%2Ftwang.c;h=4c434d0dff834a0308a57c3411fbeee3b3163585;hp=cc30b002a6740de4f3e985d0caa53563f9b2f2a7;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/twang.c b/hacks/twang.c index cc30b002..4c434d0d 100644 --- a/hacks/twang.c +++ b/hacks/twang.c @@ -592,6 +592,7 @@ static void setupModel (struct state *st) leftX = (st->windowWidth - (st->columns * st->tileSize) + st->tileSize) / 2; topY = (st->windowHeight - (st->rows * st->tileSize) + st->tileSize) / 2; + if (st->tileCount < 1) st->tileCount = 1; st->tiles = calloc (st->tileCount, sizeof (Tile)); st->sortedTiles = calloc (st->tileCount, sizeof (Tile *)); @@ -784,7 +785,7 @@ static const char *twang_defaults [] = { #else "*useSHM: False", #endif -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", "*rotateImages: True", #endif