summaryrefslogtreecommitdiff
path: root/apps/plugins/cube.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/cube.c')
-rw-r--r--apps/plugins/cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 854b190797..1db8b24b9c 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -138,7 +138,7 @@ PLUGIN_HEADER
138 138
139#ifdef HAVE_LCD_BITMAP 139#ifdef HAVE_LCD_BITMAP
140 140
141#define DIST (10*LCD_HEIGHT/16) 141#define DIST (10 * MIN(LCD_HEIGHT, LCD_WIDTH) / 16)
142static int x_off = LCD_WIDTH/2; 142static int x_off = LCD_WIDTH/2;
143static int y_off = LCD_HEIGHT/2; 143static int y_off = LCD_HEIGHT/2;
144 144