diff options
Diffstat (limited to 'utils/wpseditor')
-rw-r--r-- | utils/wpseditor/libwps/Makefile | 15 | ||||
-rw-r--r-- | utils/wpseditor/libwps/src/dummies.c | 10 | ||||
-rw-r--r-- | utils/wpseditor/libwps/src/lcd.c | 12 |
3 files changed, 31 insertions, 6 deletions
diff --git a/utils/wpseditor/libwps/Makefile b/utils/wpseditor/libwps/Makefile index 17046e8488..6abc1d8d8d 100644 --- a/utils/wpseditor/libwps/Makefile +++ b/utils/wpseditor/libwps/Makefile @@ -33,11 +33,22 @@ TARGETS=IRIVER_H10 \ IPOD_COLOR \ IPOD_NANO \ IPOD_VIDEO \ + IPOD_3G \ + IPOD_4G \ + IPOD_MINI \ + IPOD_MINI2G \ + IPOD_1G2G \ GIGABEAT_F \ GIGABEAT_S \ SANSA_E200 \ - SANSA_C200 - + SANSA_C200 \ + IRIVER_H100 \ + IRIVER_H120 \ + IRIVER_H300 \ + IAUDIO_X5 \ + IAUDIO_M5 \ + IAUDIO_M3 \ + SOURCES= \ src/api.c \ src/dummies.c \ diff --git a/utils/wpseditor/libwps/src/dummies.c b/utils/wpseditor/libwps/src/dummies.c index 8592610701..002cf93c60 100644 --- a/utils/wpseditor/libwps/src/dummies.c +++ b/utils/wpseditor/libwps/src/dummies.c @@ -177,7 +177,7 @@ void cue_draw_markers(struct screen *screen, unsigned long tracklen, int x1, int x2, int y, int h){} #endif - +#ifdef HAVE_ALBUMART void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear) { if (!gwps || !gwps->data || !gwps->display || handle_id < 0) @@ -240,7 +240,7 @@ void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear) gwps->display->set_drawmode(DRMODE_SOLID); } } - +#endif /* Update the "data" pointer to make the handle's data available to the caller. Return the length of the available linear data or < 0 for failure (handle not found). @@ -274,6 +274,10 @@ void unload_wps_backdrop(void) { } +void unload_remote_wps_backdrop(void) +{ + +} #if CONFIG_CODEC == SWCODEC int get_replaygain_mode(bool have_track_gain, bool have_album_gain) @@ -299,6 +303,8 @@ int rtc_write_datetime(unsigned char* buf){return 0;} void backlight_on(void){} void backlight_off(void){} +void remote_backlight_on(void){} +void remote_backlight_off(void){} void debugf(const char *fmt, ...) {} diff --git a/utils/wpseditor/libwps/src/lcd.c b/utils/wpseditor/libwps/src/lcd.c index 1f12332750..c3f16c9946 100644 --- a/utils/wpseditor/libwps/src/lcd.c +++ b/utils/wpseditor/libwps/src/lcd.c @@ -12,13 +12,19 @@ static struct viewport default_vp = .y = 0, .width = LCD_WIDTH, .height = LCD_HEIGHT, +#ifdef HAVE_LCD_BITMAP .font = FONT_SYSFIXED, .drawmode = DRMODE_SOLID, +#endif +#if LCD_DEPTH > 1 .fg_pattern = LCD_DEFAULT_FG, .bg_pattern = LCD_DEFAULT_BG, +#ifdef HAVE_LCD_COLOR .lss_pattern = LCD_DEFAULT_BG, .lse_pattern = LCD_DEFAULT_BG, .lst_pattern = LCD_DEFAULT_BG, +#endif +#endif }; struct viewport* current_vp = &default_vp; @@ -65,7 +71,7 @@ int lcd_get_drawmode(void) { return current_vp->drawmode; } - +#if LCD_DEPTH > 1 void lcd_set_foreground(unsigned color) { current_vp->fg_pattern = color; @@ -86,6 +92,7 @@ unsigned lcd_get_background(void) return current_vp->bg_pattern; } +#ifdef HAVE_LCD_COLOR void lcd_set_selector_start(unsigned color) { current_vp->lss_pattern = color; @@ -107,7 +114,8 @@ void lcd_set_drawinfo(int mode, unsigned fg_color, unsigned bg_color) current_vp->fg_pattern = fg_color; current_vp->bg_pattern = bg_color; } - +#endif +#endif int lcd_getwidth(void) { return current_vp->width; |