Skip to content
Snippets Groups Projects
Commit a6e42ed0 authored by Anatolij Gustschin's avatar Anatolij Gustschin
Browse files

lcd: remove CONFIG_ATMEL_LCD ifdefs from lcd_setfgcolor


Not all boards defining LCD_COLOR16 are able to set
lcd_color_fg/lcd_color_bg correctly. The issue seems to
be caused by CONFIG_ATMEL_LCD ifdefs in lcd_setfgcolor()
and lcd_setbgcolor(). Actually, the color values passed
to these functions are already correct, we don't need
to fix them. So remove ifdefs here.

Reported-by: default avatarAlessandro Rubini <rubini@unipv.it>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent d841978e
Branches
Tags
No related merge requests found
......@@ -456,22 +456,14 @@ ulong lcd_setmem (ulong addr)
static void lcd_setfgcolor (int color)
{
#ifdef CONFIG_ATMEL_LCD
lcd_color_fg = color;
#else
lcd_color_fg = color & 0x0F;
#endif
}
/*----------------------------------------------------------------------*/
static void lcd_setbgcolor (int color)
{
#ifdef CONFIG_ATMEL_LCD
lcd_color_bg = color;
#else
lcd_color_bg = color & 0x0F;
#endif
}
/*----------------------------------------------------------------------*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment