From 9ad02de6236dab85a11177c706a582bc7a7be75d Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Mon, 22 May 2006 16:28:19 +0000 Subject: fix simulator build for the gigabeat git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9973 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/cube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/cube.c') 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 #ifdef HAVE_LCD_BITMAP -#define DIST (10*LCD_HEIGHT/16) +#define DIST (10 * MIN(LCD_HEIGHT, LCD_WIDTH) / 16) static int x_off = LCD_WIDTH/2; static int y_off = LCD_HEIGHT/2; -- cgit v1.2.3