From 5b2cba17aa95ececfdb6a498540de4dfa215e920 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 16 Nov 2005 21:09:23 +0000 Subject: Changed the LCD_COLOR pixel value format to packed RGB (unsigned int). Now all LCDs with depth > 1 use the same datatype. Added macros for easy pixel value definition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7912 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 8630ce7f17..f8e84f8cae 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -173,17 +173,10 @@ struct plugin_api { void (*lcd_mono_bitmap)(const unsigned char *src, int x, int y, int width, int height); #if LCD_DEPTH > 1 -#ifdef HAVE_LCD_COLOR - void (*lcd_set_foreground)(struct rgb color); - struct rgb (*lcd_get_foreground)(void); - void (*lcd_set_background)(struct rgb color); - struct rgb (*lcd_get_background)(void); -#else - void (*lcd_set_foreground)(int brightness); - int (*lcd_get_foreground)(void); - void (*lcd_set_background)(int brightness); - int (*lcd_get_background)(void); -#endif + void (*lcd_set_foreground)(unsigned foreground); + unsigned (*lcd_get_foreground)(void); + void (*lcd_set_background)(unsigned foreground); + unsigned (*lcd_get_background)(void); void (*lcd_bitmap_part)(const fb_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height); void (*lcd_bitmap)(const fb_data *src, int x, int y, int width, -- cgit v1.2.3