projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver]
/
hacks
/
twang.c
diff --git
a/hacks/twang.c
b/hacks/twang.c
index cc30b002a6740de4f3e985d0caa53563f9b2f2a7..4c434d0dff834a0308a57c3411fbeee3b3163585 100644
(file)
--- 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;
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 *));
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
#else
"*useSHM: False",
#endif
-#ifdef
USE_IPHON
E
+#ifdef
HAVE_MOBIL
E
"*ignoreRotation: True",
"*rotateImages: True",
#endif
"*ignoreRotation: True",
"*rotateImages: True",
#endif