diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-06-04 13:22:50 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-06-04 13:22:50 +0000 |
commit | e63e84a5dfb18e9b7eca8dabcd2d58ceac342529 (patch) | |
tree | 25989313fa6d7ea9f59ae8bdb1e56fe69f5e1a24 /apps/plugins/rockblox.c | |
parent | bc26fe7a96d6f5e443003cb871dcb4bfba525352 (diff) | |
download | rockbox-e63e84a5dfb18e9b7eca8dabcd2d58ceac342529.tar.gz rockbox-e63e84a5dfb18e9b7eca8dabcd2d58ceac342529.zip |
Convert some more stuff to mylcd_ and support pgfx as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26543 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r-- | apps/plugins/rockblox.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index 4e261e4547..084eaa5830 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "lib/highscore.h" | 26 | #include "lib/highscore.h" |
27 | #include "lib/playback_control.h" | 27 | #include "lib/playback_control.h" |
28 | #include "lib/playergfx.h" | 28 | #include "lib/playergfx.h" |
29 | #include "lib/mylcd.h" | ||
29 | 30 | ||
30 | PLUGIN_HEADER | 31 | PLUGIN_HEADER |
31 | 32 | ||
@@ -599,8 +600,6 @@ PLUGIN_HEADER | |||
599 | #define LINES_X LABEL_X | 600 | #define LINES_X LABEL_X |
600 | #endif | 601 | #endif |
601 | 602 | ||
602 | #define MYLCD(fn) rb->lcd_ ## fn | ||
603 | |||
604 | extern const fb_data rockblox_background[]; | 603 | extern const fb_data rockblox_background[]; |
605 | 604 | ||
606 | #else /* HAVE_LCD_CHARCELLS */ | 605 | #else /* HAVE_LCD_CHARCELLS */ |
@@ -614,8 +613,6 @@ extern const fb_data rockblox_background[]; | |||
614 | #define PREVIEW_X 15 | 613 | #define PREVIEW_X 15 |
615 | #define PREVIEW_Y 1 | 614 | #define PREVIEW_Y 1 |
616 | 615 | ||
617 | #define MYLCD(fn) pgfx_ ## fn | ||
618 | |||
619 | #endif | 616 | #endif |
620 | 617 | ||
621 | #ifndef _SPACE | 618 | #ifndef _SPACE |
@@ -983,14 +980,14 @@ static void refresh_board (void) | |||
983 | #if LCD_DEPTH >= 2 | 980 | #if LCD_DEPTH >= 2 |
984 | rb->lcd_set_foreground (LCD_BLACK); | 981 | rb->lcd_set_foreground (LCD_BLACK); |
985 | #elif LCD_DEPTH == 1 | 982 | #elif LCD_DEPTH == 1 |
986 | MYLCD(set_drawmode) (DRMODE_SOLID | DRMODE_INVERSEVID); | 983 | mylcd_set_drawmode (DRMODE_SOLID | DRMODE_INVERSEVID); |
987 | #endif | 984 | #endif |
988 | 985 | ||
989 | MYLCD(fillrect) (BOARD_X, BOARD_Y, BOARD_WIDTH * BLOCK_WIDTH, | 986 | mylcd_fillrect (BOARD_X, BOARD_Y, BOARD_WIDTH * BLOCK_WIDTH, |
990 | BOARD_HEIGHT * BLOCK_HEIGHT); | 987 | BOARD_HEIGHT * BLOCK_HEIGHT); |
991 | 988 | ||
992 | #if LCD_DEPTH == 1 | 989 | #if LCD_DEPTH == 1 |
993 | MYLCD(set_drawmode) (DRMODE_SOLID); | 990 | mylcd_set_drawmode (DRMODE_SOLID); |
994 | #endif | 991 | #endif |
995 | 992 | ||
996 | for (i = 0; i < BOARD_WIDTH; i++) | 993 | for (i = 0; i < BOARD_WIDTH; i++) |
@@ -1067,7 +1064,7 @@ static void refresh_board (void) | |||
1067 | pgfx_drawpixel (BOARD_X + x, BOARD_Y + y); | 1064 | pgfx_drawpixel (BOARD_X + x, BOARD_Y + y); |
1068 | #endif | 1065 | #endif |
1069 | } | 1066 | } |
1070 | MYLCD(update) (); | 1067 | mylcd_update (); |
1071 | } | 1068 | } |
1072 | 1069 | ||
1073 | static bool canMoveTo (int x, int y, int newOrientation) | 1070 | static bool canMoveTo (int x, int y, int newOrientation) |
@@ -1092,14 +1089,14 @@ static void draw_next_block (void) | |||
1092 | #if LCD_DEPTH >= 2 | 1089 | #if LCD_DEPTH >= 2 |
1093 | rb->lcd_set_foreground (LCD_BLACK); | 1090 | rb->lcd_set_foreground (LCD_BLACK); |
1094 | #elif LCD_DEPTH == 1 | 1091 | #elif LCD_DEPTH == 1 |
1095 | MYLCD(set_drawmode) (DRMODE_SOLID | DRMODE_INVERSEVID); | 1092 | mylcd_set_drawmode (DRMODE_SOLID | DRMODE_INVERSEVID); |
1096 | #endif | 1093 | #endif |
1097 | 1094 | ||
1098 | /* 4x4 */ | 1095 | /* 4x4 */ |
1099 | MYLCD(fillrect) (PREVIEW_X, PREVIEW_Y, BLOCK_WIDTH * 4, BLOCK_HEIGHT * 4); | 1096 | mylcd_fillrect (PREVIEW_X, PREVIEW_Y, BLOCK_WIDTH * 4, BLOCK_HEIGHT * 4); |
1100 | 1097 | ||
1101 | #if LCD_DEPTH == 1 | 1098 | #if LCD_DEPTH == 1 |
1102 | MYLCD(set_drawmode) (DRMODE_SOLID); | 1099 | mylcd_set_drawmode (DRMODE_SOLID); |
1103 | #endif | 1100 | #endif |
1104 | 1101 | ||
1105 | /* draw the lightgray rectangles */ | 1102 | /* draw the lightgray rectangles */ |