From f3dd56791a58c6342d15691c67946d7cbaacf4ab Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 18 Sep 2006 21:21:12 +0000 Subject: Bubbles adapted to H10-5GB by Marianne Arnold. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10997 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bubbles.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'apps/plugins/bubbles.c') diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index be3783c..196587a 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -175,8 +175,8 @@ PLUGIN_HEADER #define ROW_INDENT 6 #define MAX_FPS 40 -/* 12x12 bubbles (H100, iAudio X5, iPod 3G, iPod 4G grayscale) */ -#elif (LCD_HEIGHT == 128) && (LCD_WIDTH == 160) +/* 12x12 bubbles (H100, H10, iAudio X5, iPod 3G, iPod 4G grayscale) */ +#elif (LCD_HEIGHT == 128) && ((LCD_WIDTH == 160) || (LCD_WIDTH == 128)) #define BUBBLE_WIDTH 12 #define BUBBLE_HEIGHT 12 #define EMBLEM_WIDTH 8 @@ -224,10 +224,13 @@ PLUGIN_HEADER /* external bitmaps */ extern const fb_data bubbles_bubble[]; extern const fb_data bubbles_emblem[]; -#ifdef HAVE_LCD_COLOR +#ifdef HAVE_LCD_COLOR extern const fb_data bubbles_left[]; +/* skip right border for square screens */ +#if (LCD_WIDTH > LCD_HEIGHT) extern const fb_data bubbles_right[]; #endif +#endif /* global rockbox api */ static struct plugin_api* rb; @@ -1506,9 +1509,12 @@ static void bubbles_drawboard(struct game_context* bb) { /* draw sidebars */ #ifdef HAVE_LCD_COLOR rb->lcd_bitmap(bubbles_left, 0, 0, XOFS, LCD_HEIGHT); + /* skip right border for square screens */ +#if (LCD_WIDTH > LCD_HEIGHT) rb->lcd_bitmap(bubbles_right, XOFS-1+BB_WIDTH*BUBBLE_WIDTH, 0, LCD_WIDTH-(XOFS-1+BB_WIDTH*BUBBLE_WIDTH), LCD_HEIGHT); #endif +#endif /* display play board */ for(i=0; ilcd_puts(0, 2, "PLAY to start/pause"); rb->lcd_puts(0, 3, "FF to save/resume"); rb->lcd_puts(0, 4, "POWER to exit"); -- cgit v1.1