summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-26 02:48:05 +0000
committerDave Chapman <dave@dchapman.com>2006-02-26 02:48:05 +0000
commit603f87fe3c0557cb31386fb89c0a49fb72102735 (patch)
treefa75366ddf1a1dc293e49ec29b9944d448da6c67 /apps/plugin.c
parentdd2a5294d67266e5cf7b8739d645a2cf6edd7a28 (diff)
Foreground/Background colour settings. Based on patch #3050 by Jonathan Gordon, extended my me. The principle of the patch is that the three sliders contain the native ranges (currently 0..31, 0..63, 0..31), and the equivalent RGB888 colour is displayed underneath. The config block (and global_settings struct) contain the native value for the fg/bg colours (either RGB565 or RGB565SWAPPED), but the text .cfg files contain the RGB888 value written as 6 hex digits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8840 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index c9fb0ac8f5..61396b4357 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -515,7 +515,12 @@ int plugin_load(const char* plugin, void* parameter)
#ifdef HAVE_LCD_BITMAP
#if LCD_DEPTH > 1
+#ifdef HAVE_LCD_COLOR
+ lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color,
+ global_settings.bg_color);
+#else
lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG);
+#endif
#else /* LCD_DEPTH == 1 */
lcd_set_drawmode(DRMODE_SOLID);
#endif /* LCD_DEPTH */