summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-16 21:09:23 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-16 21:09:23 +0000
commit5b2cba17aa95ececfdb6a498540de4dfa215e920 (patch)
tree3574eab7dc84f588268b72f6db56744fcc4d0e64 /apps/plugin.h
parent15046f99b3840c07bdd9d52e7014c6e775267c55 (diff)
downloadrockbox-5b2cba17aa95ececfdb6a498540de4dfa215e920.tar.gz
rockbox-5b2cba17aa95ececfdb6a498540de4dfa215e920.zip
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
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h15
1 files changed, 4 insertions, 11 deletions
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 {
173 void (*lcd_mono_bitmap)(const unsigned char *src, int x, int y, 173 void (*lcd_mono_bitmap)(const unsigned char *src, int x, int y,
174 int width, int height); 174 int width, int height);
175#if LCD_DEPTH > 1 175#if LCD_DEPTH > 1
176#ifdef HAVE_LCD_COLOR 176 void (*lcd_set_foreground)(unsigned foreground);
177 void (*lcd_set_foreground)(struct rgb color); 177 unsigned (*lcd_get_foreground)(void);
178 struct rgb (*lcd_get_foreground)(void); 178 void (*lcd_set_background)(unsigned foreground);
179 void (*lcd_set_background)(struct rgb color); 179 unsigned (*lcd_get_background)(void);
180 struct rgb (*lcd_get_background)(void);
181#else
182 void (*lcd_set_foreground)(int brightness);
183 int (*lcd_get_foreground)(void);
184 void (*lcd_set_background)(int brightness);
185 int (*lcd_get_background)(void);
186#endif
187 void (*lcd_bitmap_part)(const fb_data *src, int src_x, int src_y, 180 void (*lcd_bitmap_part)(const fb_data *src, int src_x, int src_y,
188 int stride, int x, int y, int width, int height); 181 int stride, int x, int y, int width, int height);
189 void (*lcd_bitmap)(const fb_data *src, int x, int y, int width, 182 void (*lcd_bitmap)(const fb_data *src, int x, int y, int width,