summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-14 18:11:36 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-14 18:11:36 +0000
commitbf9f28b03b6ce3ca248e6e76afd91cb20a49d422 (patch)
treefcdf516ad46f7351fc99e2cb22604bf1f09b2081 /firmware
parent4a53253592802531ff22d1baf36b9e71e9b2d4f4 (diff)
downloadrockbox-bf9f28b03b6ce3ca248e6e76afd91cb20a49d422.tar.gz
rockbox-bf9f28b03b6ce3ca248e6e76afd91cb20a49d422.zip
Greyscale graphics driver: Added missing function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7141 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-h100.c7
-rw-r--r--firmware/export/lcd.h7
2 files changed, 11 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c
index dcc5a42e5d..d021868580 100644
--- a/firmware/drivers/lcd-h100.c
+++ b/firmware/drivers/lcd-h100.c
@@ -302,6 +302,13 @@ int lcd_get_background(void)
return ~bg_pattern & 3;
}
+void lcd_set_drawinfo(int mode, int fg_brightness, int bg_brightness)
+{
+ lcd_set_drawmode(mode);
+ lcd_set_foreground(fg_brightness);
+ lcd_set_background(bg_brightness);
+}
+
void lcd_setmargins(int x, int y)
{
xmargin = x;
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 8507c42280..6860d8f064 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -168,13 +168,14 @@ extern void lcd_scroll_step(int pixels);
#if LCD_DEPTH > 1
extern void lcd_set_foreground(int brightness);
-extern int lcd_get_foreground(void);
+extern int lcd_get_foreground(void);
extern void lcd_set_background(int brightness);
-extern int lcd_get_background(void);
+extern int lcd_get_background(void);
+extern void lcd_set_drawinfo(int mode, int fg_brightness, int bg_brightness);
extern void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y,
int stride, int x, int y, int width, int height);
extern void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width,
- int height);
+ int height);
#else /* LCD_DEPTH == 1 */
#define lcd_mono_bitmap lcd_bitmap
#define lcd_mono_bitmap_part lcd_bitmap_part