From: Francesco Mandracci <francesco.mandracci@primaelectronics.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] wrong lcd splashscreen colors (pxa)
Date: Thu, 15 Sep 2005 18:18:14 +0200 [thread overview]
Message-ID: <43299EC6.6050206@primaelectronics.com> (raw)
Hello world :)
it seems that the computation of colors in
common/lcd.c:lcd_display_bitmap() is wrong for green and blue
components. I checked on version 1.1.3 and on cvs.sf.net.
I'm working on a PXA270 but this seems general (as far as I understand).
The error is not evident until you use full colors (i.e. if color RGB
components/bytes are either 0x00 of 0xff).
------------------------------------------------------
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
*cmap = colreg;
#endif
------------------------------------------------------
Hoping this helps.
Ciao
Francesco Mandracci
PS
Thank you all for the great job: it's the first time I get to a
bootloader prompt (on a new hardware) after only about 6 hours of work.
next reply other threads:[~2005-09-15 16:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 16:18 Francesco Mandracci [this message]
2005-09-15 17:52 ` [U-Boot-Users] [PATCH] wrong lcd splashscreen colors (pxa) Wolfgang Denk
2005-09-16 10:41 ` Francesco Mandracci
2005-09-16 10:57 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43299EC6.6050206@primaelectronics.com \
--to=francesco.mandracci@primaelectronics.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.