mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
WpsEditor: add support for greyscale targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18424 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c1e86f7531
commit
66b211addd
3 changed files with 31 additions and 6 deletions
|
|
@ -33,11 +33,22 @@ TARGETS=IRIVER_H10 \
|
||||||
IPOD_COLOR \
|
IPOD_COLOR \
|
||||||
IPOD_NANO \
|
IPOD_NANO \
|
||||||
IPOD_VIDEO \
|
IPOD_VIDEO \
|
||||||
|
IPOD_3G \
|
||||||
|
IPOD_4G \
|
||||||
|
IPOD_MINI \
|
||||||
|
IPOD_MINI2G \
|
||||||
|
IPOD_1G2G \
|
||||||
GIGABEAT_F \
|
GIGABEAT_F \
|
||||||
GIGABEAT_S \
|
GIGABEAT_S \
|
||||||
SANSA_E200 \
|
SANSA_E200 \
|
||||||
SANSA_C200
|
SANSA_C200 \
|
||||||
|
IRIVER_H100 \
|
||||||
|
IRIVER_H120 \
|
||||||
|
IRIVER_H300 \
|
||||||
|
IAUDIO_X5 \
|
||||||
|
IAUDIO_M5 \
|
||||||
|
IAUDIO_M3 \
|
||||||
|
|
||||||
SOURCES= \
|
SOURCES= \
|
||||||
src/api.c \
|
src/api.c \
|
||||||
src/dummies.c \
|
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){}
|
int x1, int x2, int y, int h){}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_ALBUMART
|
||||||
void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear)
|
void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear)
|
||||||
{
|
{
|
||||||
if (!gwps || !gwps->data || !gwps->display || handle_id < 0)
|
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);
|
gwps->display->set_drawmode(DRMODE_SOLID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* Update the "data" pointer to make the handle's data available to the caller.
|
/* 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
|
Return the length of the available linear data or < 0 for failure (handle
|
||||||
not found).
|
not found).
|
||||||
|
|
@ -273,6 +273,10 @@ bool force_redraw)
|
||||||
void unload_wps_backdrop(void)
|
void unload_wps_backdrop(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
void unload_remote_wps_backdrop(void)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_CODEC == SWCODEC
|
#if CONFIG_CODEC == SWCODEC
|
||||||
|
|
@ -299,6 +303,8 @@ int rtc_write_datetime(unsigned char* buf){return 0;}
|
||||||
void backlight_on(void){}
|
void backlight_on(void){}
|
||||||
void backlight_off(void){}
|
void backlight_off(void){}
|
||||||
|
|
||||||
|
void remote_backlight_on(void){}
|
||||||
|
void remote_backlight_off(void){}
|
||||||
|
|
||||||
void debugf(const char *fmt, ...)
|
void debugf(const char *fmt, ...)
|
||||||
{}
|
{}
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,19 @@ static struct viewport default_vp =
|
||||||
.y = 0,
|
.y = 0,
|
||||||
.width = LCD_WIDTH,
|
.width = LCD_WIDTH,
|
||||||
.height = LCD_HEIGHT,
|
.height = LCD_HEIGHT,
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
.font = FONT_SYSFIXED,
|
.font = FONT_SYSFIXED,
|
||||||
.drawmode = DRMODE_SOLID,
|
.drawmode = DRMODE_SOLID,
|
||||||
|
#endif
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
.fg_pattern = LCD_DEFAULT_FG,
|
.fg_pattern = LCD_DEFAULT_FG,
|
||||||
.bg_pattern = LCD_DEFAULT_BG,
|
.bg_pattern = LCD_DEFAULT_BG,
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
.lss_pattern = LCD_DEFAULT_BG,
|
.lss_pattern = LCD_DEFAULT_BG,
|
||||||
.lse_pattern = LCD_DEFAULT_BG,
|
.lse_pattern = LCD_DEFAULT_BG,
|
||||||
.lst_pattern = LCD_DEFAULT_BG,
|
.lst_pattern = LCD_DEFAULT_BG,
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct viewport* current_vp = &default_vp;
|
struct viewport* current_vp = &default_vp;
|
||||||
|
|
@ -65,7 +71,7 @@ int lcd_get_drawmode(void)
|
||||||
{
|
{
|
||||||
return current_vp->drawmode;
|
return current_vp->drawmode;
|
||||||
}
|
}
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
void lcd_set_foreground(unsigned color)
|
void lcd_set_foreground(unsigned color)
|
||||||
{
|
{
|
||||||
current_vp->fg_pattern = color;
|
current_vp->fg_pattern = color;
|
||||||
|
|
@ -86,6 +92,7 @@ unsigned lcd_get_background(void)
|
||||||
return current_vp->bg_pattern;
|
return current_vp->bg_pattern;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
void lcd_set_selector_start(unsigned color)
|
void lcd_set_selector_start(unsigned color)
|
||||||
{
|
{
|
||||||
current_vp->lss_pattern = 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->fg_pattern = fg_color;
|
||||||
current_vp->bg_pattern = bg_color;
|
current_vp->bg_pattern = bg_color;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
int lcd_getwidth(void)
|
int lcd_getwidth(void)
|
||||||
{
|
{
|
||||||
return current_vp->width;
|
return current_vp->width;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue