From 603f87fe3c0557cb31386fb89c0a49fb72102735 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 26 Feb 2006 02:48:05 +0000 Subject: 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 --- apps/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index c9fb0ac..61396b4 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 */ -- cgit v1.1