diff options
Diffstat (limited to 'apps/plugins/robotfindskitten.c')
-rw-r--r-- | apps/plugins/robotfindskitten.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/robotfindskitten.c b/apps/plugins/robotfindskitten.c index 4b33513eb2..747689d9db 100644 --- a/apps/plugins/robotfindskitten.c +++ b/apps/plugins/robotfindskitten.c | |||
@@ -29,7 +29,7 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "plugin.h" | 31 | #include "plugin.h" |
32 | #include "pluginlib_actions.h" | 32 | #include "lib/pluginlib_actions.h" |
33 | 33 | ||
34 | /* This macros must always be included. Should be placed at the top by | 34 | /* This macros must always be included. Should be placed at the top by |
35 | convention, although the actual position doesn't matter */ | 35 | convention, although the actual position doesn't matter */ |
@@ -489,6 +489,14 @@ static char* messages[] = | |||
489 | #define ROBOT 0 | 489 | #define ROBOT 0 |
490 | #define KITTEN 1 | 490 | #define KITTEN 1 |
491 | 491 | ||
492 | /* if SYSFONT_WIDTH is 0 (which it is during dependency generation) gcc | ||
493 | will abort (div by 0) and this plugin won't get any dependencies | ||
494 | */ | ||
495 | #if SYSFONT_WIDTH < 1 | ||
496 | #define SYSFONT_WIDTH 10 | ||
497 | #define SYSFONT_HEIGHT 10 | ||
498 | #endif | ||
499 | |||
492 | /*Screen dimensions.*/ | 500 | /*Screen dimensions.*/ |
493 | #define X_MIN 0 | 501 | #define X_MIN 0 |
494 | #define X_MAX ((LCD_WIDTH/SYSFONT_WIDTH) - 1) | 502 | #define X_MAX ((LCD_WIDTH/SYSFONT_WIDTH) - 1) |