summaryrefslogtreecommitdiff
path: root/apps/plugins/sokoban.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r--apps/plugins/sokoban.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 9b9cd29e0a..0a032f6bd1 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -34,6 +34,14 @@ PLUGIN_HEADER
34 34
35#include "pluginbitmaps/sokoban_tiles.h" 35#include "pluginbitmaps/sokoban_tiles.h"
36#define SOKOBAN_TILESIZE BMPWIDTH_sokoban_tiles 36#define SOKOBAN_TILESIZE BMPWIDTH_sokoban_tiles
37
38/* If tilesize is 0 (which it is during dependency generation) gcc will abort
39 (div by 0) and this plugin won't get any dependencies
40*/
41#if SOKOBAN_TILESIZE < 1
42#define SOKOBAN_TILESIZE 10
43#endif
44
37/* SOKOBAN_TILESIZE is the number of pixels for each block. 45/* SOKOBAN_TILESIZE is the number of pixels for each block.
38 * Set dynamically so all targets can support levels 46 * Set dynamically so all targets can support levels
39 * that fill their entire screen, less the stat box. 47 * that fill their entire screen, less the stat box.