diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2011-11-13 21:25:27 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-11-13 21:25:27 +0000 |
| commit | e0d0eedc905679e941f35b0a03fd593a8aee9b15 (patch) | |
| tree | 5b6ef243e2f4e4bb9dde201601da017b081c4a29 /apps/plugins/pegbox.c | |
| parent | 169b3048e34c224bb5489572e9f30b3e5379d7aa (diff) | |
| download | rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.zip rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.tar.gz rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.tar.bz2 rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.tar.xz | |
Sansa clip zip: update plugins (jewels, pegbox, rockpaint, star)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30976 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pegbox.c')
| -rw-r--r-- | apps/plugins/pegbox.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c index 635335a..babe653 100644 --- a/apps/plugins/pegbox.c +++ b/apps/plugins/pegbox.c @@ -638,6 +638,10 @@ CONFIG_KEYPAD == MROBE500_PAD #define LEVEL_TEXT_X 25 #define PEGS_TEXT_X 90 #define TEXT_Y 0 +#elif LCD_WIDTH >= 96 +#define LEVEL_TEXT_X 25 +#define PEGS_TEXT_X 86 +#define TEXT_Y 22 #endif /* LCD_WIDTH */ #endif /* WIDE_LAYOUT */ @@ -843,7 +847,11 @@ static void pegbox_draw_board(struct game_context* pb) #ifdef HAVE_LCD_COLOR rb->lcd_set_foreground(LCD_WHITE); +#if ((BOARD_HEIGHT + HEADER_HEIGHT + 2) <= LCD_HEIGHT) rb->lcd_fillrect(BOARD_X-1,BOARD_Y-1,BOARD_WIDTH+2,BOARD_HEIGHT+2); +#else + rb->lcd_fillrect(BOARD_X,BOARD_Y,BOARD_WIDTH,BOARD_HEIGHT); +#endif rb->lcd_set_foreground(LCD_BLACK); rb->lcd_set_background(TEXT_BG); #endif |