diff options
| author | Marty Miller <marty.joseph.miller@gmail.com> | 2012-04-21 21:36:42 -0500 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-04-22 12:33:12 +0200 |
| commit | 84f7f60b8fbcd0084cf849613ac3e793894611c3 (patch) | |
| tree | fbf31c7e17b6514781201df11f961a644bf13321 /apps/plugins | |
| parent | 1060d30bdd9961ced908e4e7a06fada04a50965e (diff) | |
| download | rockbox-84f7f60b8fbcd0084cf849613ac3e793894611c3.zip rockbox-84f7f60b8fbcd0084cf849613ac3e793894611c3.tar.gz rockbox-84f7f60b8fbcd0084cf849613ac3e793894611c3.tar.bz2 rockbox-84f7f60b8fbcd0084cf849613ac3e793894611c3.tar.xz | |
Fix Rockblox plugin display issues on Clip Zip
Added Rockblox background, layout and detection for 96x96x16 displays
Change-Id: I4585d5e679851b5696542269fe2123cf7df200de
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/bitmaps/native/SOURCES | 4 | ||||
| -rw-r--r-- | apps/plugins/bitmaps/native/rockblox_background.96x96x16.bmp | bin | 0 -> 10294 bytes | |||
| -rw-r--r-- | apps/plugins/rockblox.c | 24 |
3 files changed, 16 insertions, 12 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index de347fd..f8ec938 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES @@ -514,8 +514,10 @@ rockblox_background.128x160x16.bmp rockblox_background.128x128x16.bmp #elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80) rockblox_background.132x80x16.bmp -#elif ((LCD_WIDTH == 128 && LCD_HEIGHT == 96) || (LCD_WIDTH == 96 && LCD_HEIGHT == 96)) +#elif (LCD_WIDTH == 128 && LCD_HEIGHT == 96) rockblox_background.128x96x2.bmp +#elif (LCD_WIDTH == 96 && LCD_HEIGHT == 96) +rockblox_background.96x96x16.bmp #endif #elif LCD_DEPTH == 2 /* greyscale versions */ #if (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) diff --git a/apps/plugins/bitmaps/native/rockblox_background.96x96x16.bmp b/apps/plugins/bitmaps/native/rockblox_background.96x96x16.bmp Binary files differnew file mode 100644 index 0000000..cb8f1b1 --- /dev/null +++ b/apps/plugins/bitmaps/native/rockblox_background.96x96x16.bmp diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index 17eadd6..8db4a34 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c @@ -670,19 +670,21 @@ #define LEVEL_X 78 #define LINES_Y 51 -#elif LCD_WIDTH == 96 && LCD_HEIGHT == 96 +#elif (LCD_WIDTH == 96) && (LCD_HEIGHT == 96) -#define BLOCK_WIDTH 3 -#define BLOCK_HEIGHT 3 -#define BOARD_X 9 -#define BOARD_Y 3 -#define PREVIEW_X 59 -#define PREVIEW_Y 5 +#define BLOCK_WIDTH 4 +#define BLOCK_HEIGHT 4 +#define BOARD_X 5 +#define BOARD_Y 4 +#define PREVIEW_X 64 +#define PREVIEW_Y 76 #define LABEL_X 59 -#define SCORE_Y 32 -#define LEVEL_Y 13 -#define LEVEL_X 78 -#define LINES_Y 51 +#define SCORE_Y 15 +#define SCORE_X 58 +#define LEVEL_Y 39 +#define LEVEL_X 58 +#define LINES_Y 62 +#define LINES_X 58 #endif #ifndef LEVEL_X |