diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/color_picker.c | 4 | ||||
-rw-r--r-- | apps/plugin.c | 8 | ||||
-rw-r--r-- | apps/plugin.h | 14 | ||||
-rw-r--r-- | apps/plugins/snow.c | 4 | ||||
-rw-r--r-- | apps/plugins/stats.c | 24 |
5 files changed, 43 insertions, 11 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c index edf6a49570..f2e482c651 100644 --- a/apps/gui/color_picker.c +++ b/apps/gui/color_picker.c | |||
@@ -73,6 +73,10 @@ | |||
73 | #define SLIDER_OK BUTTON_SELECT | 73 | #define SLIDER_OK BUTTON_SELECT |
74 | #define SLIDER_CANCEL BUTTON_PLAY | 74 | #define SLIDER_CANCEL BUTTON_PLAY |
75 | 75 | ||
76 | /* FIXME: chosen at will to make it compile */ | ||
77 | #define SLIDER_RC_OK BUTTON_RC_PLAY | ||
78 | #define SLIDER_RC_CANCEL BUTTON_RC_REC | ||
79 | |||
76 | #endif | 80 | #endif |
77 | 81 | ||
78 | static const int max_val[3] = {LCD_MAX_RED,LCD_MAX_GREEN,LCD_MAX_BLUE}; | 82 | static const int max_val[3] = {LCD_MAX_RED,LCD_MAX_GREEN,LCD_MAX_BLUE}; |
diff --git a/apps/plugin.c b/apps/plugin.c index e7909f764b..f9f7e42b80 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -454,6 +454,14 @@ static const struct plugin_api rockbox_api = { | |||
454 | font_get_bits, | 454 | font_get_bits, |
455 | font_load, | 455 | font_load, |
456 | #endif | 456 | #endif |
457 | #if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) | ||
458 | lcd_remote_set_foreground, | ||
459 | lcd_remote_get_foreground, | ||
460 | lcd_remote_set_background, | ||
461 | lcd_remote_get_background, | ||
462 | lcd_remote_bitmap_part, | ||
463 | lcd_remote_bitmap, | ||
464 | #endif | ||
457 | }; | 465 | }; |
458 | 466 | ||
459 | int plugin_load(const char* plugin, void* parameter) | 467 | int plugin_load(const char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index 3cd3fa6b63..0187de8678 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -104,7 +104,7 @@ | |||
104 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 104 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
105 | 105 | ||
106 | /* increase this every time the api struct changes */ | 106 | /* increase this every time the api struct changes */ |
107 | #define PLUGIN_API_VERSION 24 | 107 | #define PLUGIN_API_VERSION 25 |
108 | 108 | ||
109 | /* update this to latest version if a change to the api struct breaks | 109 | /* update this to latest version if a change to the api struct breaks |
110 | backwards compatibility (and please take the opportunity to sort in any | 110 | backwards compatibility (and please take the opportunity to sort in any |
@@ -221,7 +221,7 @@ struct plugin_api { | |||
221 | void (*lcd_remote_puts_style)(int x, int y, const unsigned char *str, int style); | 221 | void (*lcd_remote_puts_style)(int x, int y, const unsigned char *str, int style); |
222 | void (*lcd_remote_puts_scroll_style)(int x, int y, const unsigned char* string, | 222 | void (*lcd_remote_puts_scroll_style)(int x, int y, const unsigned char* string, |
223 | int style); | 223 | int style); |
224 | unsigned char* lcd_remote_framebuffer; | 224 | fb_remote_data* lcd_remote_framebuffer; |
225 | void (*lcd_remote_update)(void); | 225 | void (*lcd_remote_update)(void); |
226 | void (*lcd_remote_update_rect)(int x, int y, int width, int height); | 226 | void (*lcd_remote_update_rect)(int x, int y, int width, int height); |
227 | 227 | ||
@@ -529,6 +529,16 @@ struct plugin_api { | |||
529 | const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code ); | 529 | const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code ); |
530 | struct font* (*font_load)(const char *path); | 530 | struct font* (*font_load)(const char *path); |
531 | #endif | 531 | #endif |
532 | #if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) | ||
533 | void (*lcd_remote_set_foreground)(unsigned foreground); | ||
534 | unsigned (*lcd_remote_get_foreground)(void); | ||
535 | void (*lcd_remote_set_background)(unsigned foreground); | ||
536 | unsigned (*lcd_remote_get_background)(void); | ||
537 | void (*lcd_remote_bitmap_part)(const fb_remote_data *src, int src_x, int src_y, | ||
538 | int stride, int x, int y, int width, int height); | ||
539 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, | ||
540 | int height); | ||
541 | #endif | ||
532 | }; | 542 | }; |
533 | 543 | ||
534 | /* plugin header */ | 544 | /* plugin header */ |
diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c index bde8be883c..35efad70da 100644 --- a/apps/plugins/snow.c +++ b/apps/plugins/snow.c | |||
@@ -140,8 +140,8 @@ static void snow_move(void) | |||
140 | #ifdef HAVE_REMOTE_LCD | 140 | #ifdef HAVE_REMOTE_LCD |
141 | if (particles[i][0] <= LCD_REMOTE_WIDTH | 141 | if (particles[i][0] <= LCD_REMOTE_WIDTH |
142 | && particles[i][1] <= LCD_REMOTE_HEIGHT) { | 142 | && particles[i][1] <= LCD_REMOTE_HEIGHT) { |
143 | rb->lcd_remote_bitmap(flake,particles[i][0],particles[i][1], | 143 | rb->lcd_remote_mono_bitmap(flake,particles[i][0],particles[i][1], |
144 | FLAKE_WIDTH,FLAKE_WIDTH); | 144 | FLAKE_WIDTH,FLAKE_WIDTH); |
145 | } | 145 | } |
146 | #endif | 146 | #endif |
147 | } | 147 | } |
diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index 1e538f90b4..c6ed928de5 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c | |||
@@ -30,20 +30,30 @@ static int fontwidth, fontheight; | |||
30 | 30 | ||
31 | #if CONFIG_KEYPAD == PLAYER_PAD | 31 | #if CONFIG_KEYPAD == PLAYER_PAD |
32 | #define STATS_STOP BUTTON_STOP | 32 | #define STATS_STOP BUTTON_STOP |
33 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | 33 | |
34 | (CONFIG_KEYPAD == IPOD_3G_PAD) | 34 | #elif (CONFIG_KEYPAD == RECORDER_PAD) \ |
35 | || (CONFIG_KEYPAD == ONDIO_PAD) | ||
36 | #define STATS_STOP BUTTON_OFF | ||
37 | |||
38 | #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) \ | ||
39 | || (CONFIG_KEYPAD == IRIVER_H300_PAD) | ||
40 | #define STATS_STOP BUTTON_OFF | ||
41 | #define STATS_STOP_REMOTE BUTTON_RC_STOP | ||
42 | |||
43 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) \ | ||
44 | || (CONFIG_KEYPAD == IPOD_3G_PAD) | ||
35 | #define STATS_STOP BUTTON_MENU | 45 | #define STATS_STOP BUTTON_MENU |
46 | |||
36 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD | 47 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD |
37 | #define STATS_STOP BUTTON_PLAY | 48 | #define STATS_STOP BUTTON_PLAY |
49 | |||
38 | #elif CONFIG_KEYPAD == IAUDIO_X5_PAD | 50 | #elif CONFIG_KEYPAD == IAUDIO_X5_PAD |
39 | #define STATS_STOP BUTTON_POWER | 51 | #define STATS_STOP BUTTON_POWER |
52 | #define STATS_STOP_REMOTE BUTTON_RC_PLAY | ||
53 | |||
40 | #elif CONFIG_KEYPAD == GIGABEAT_PAD | 54 | #elif CONFIG_KEYPAD == GIGABEAT_PAD |
41 | #define STATS_STOP BUTTON_A | 55 | #define STATS_STOP BUTTON_A |
42 | #else | 56 | |
43 | #define STATS_STOP BUTTON_OFF | ||
44 | #endif | ||
45 | #ifdef HAVE_REMOTE_LCD | ||
46 | #define STATS_STOP_REMOTE BUTTON_RC_STOP | ||
47 | #endif | 57 | #endif |
48 | 58 | ||
49 | /* TODO: Better get the exts from the filetypes var in tree.c */ | 59 | /* TODO: Better get the exts from the filetypes var in tree.c */ |