mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-12 13:35:21 -04:00
Fix computation of framebuffer palette for 8bpp LCD bitmaps
Patch by Francesco Mandracci, 16 Sep 2005
This commit is contained in:
parent
1806c75959
commit
59d80bf180
@ -2,6 +2,9 @@
|
|||||||
Changes for U-Boot 1.1.4:
|
Changes for U-Boot 1.1.4:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Fix computation of framebuffer palette for 8bpp LCD bitmaps
|
||||||
|
Patch by Francesco Mandracci, 16 Sep 2005
|
||||||
|
|
||||||
* Update configuration for INKA4x0 board
|
* Update configuration for INKA4x0 board
|
||||||
|
|
||||||
* Update configuration for PM854 board
|
* Update configuration for PM854 board
|
||||||
|
@ -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];
|
bmp_color_table_entry_t cte = bmp->color_table[i];
|
||||||
ushort colreg =
|
ushort colreg =
|
||||||
( ((cte.red) << 8) & 0xf800) |
|
( ((cte.red) << 8) & 0xf800) |
|
||||||
( ((cte.green) << 4) & 0x07e0) |
|
( ((cte.green) << 3) & 0x07e0) |
|
||||||
( (cte.blue) & 0x001f) ;
|
( ((cte.blue) >> 3) & 0x001f) ;
|
||||||
|
|
||||||
#ifdef CFG_INVERT_COLORS
|
#ifdef CFG_INVERT_COLORS
|
||||||
*cmap = 0xffff - colreg;
|
*cmap = 0xffff - colreg;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user