From 59d80bf180c39e4e83ec23654dc17ce514c88208 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Wed, 21 Sep 2005 15:24:52 +0200 Subject: Fix computation of framebuffer palette for 8bpp LCD bitmaps Patch by Francesco Mandracci, 16 Sep 2005 --- common/lcd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common/lcd.c') diff --git a/common/lcd.c b/common/lcd.c index a85599dd7..7bf7a63fd 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -638,9 +638,8 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y) bmp_color_table_entry_t cte = bmp->color_table[i]; ushort colreg = ( ((cte.red) << 8) & 0xf800) | - ( ((cte.green) << 4) & 0x07e0) | - ( (cte.blue) & 0x001f) ; - + ( ((cte.green) << 3) & 0x07e0) | + ( ((cte.blue) >> 3) & 0x001f) ; #ifdef CFG_INVERT_COLORS *cmap = 0xffff - colreg; #else -- cgit v1.2.3