Greyscale graphics driver: Added missing function.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7141 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-07-14 18:11:36 +00:00
parent 4a53253592
commit bf9f28b03b
2 changed files with 11 additions and 3 deletions

View file

@ -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;

View file

@ -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