mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
lcd: align fb writing address for horizontal display offset
CONFIG_SPLASH_SCREEN_ALIGN makes uboot support display offset for splashimage. The framebuffer writing address should be calculated according to different kinds of framebuffer pixel format, i.e., bits per pixel value. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
This commit is contained in:
parent
8aba9dceeb
commit
8d46d5b186
1 changed files with 1 additions and 1 deletions
|
|
@ -731,7 +731,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
|
||||||
|
|
||||||
bmap = (uchar *)bmp + le32_to_cpu (bmp->header.data_offset);
|
bmap = (uchar *)bmp + le32_to_cpu (bmp->header.data_offset);
|
||||||
fb = (uchar *) (lcd_base +
|
fb = (uchar *) (lcd_base +
|
||||||
(y + height - 1) * lcd_line_length + x);
|
(y + height - 1) * lcd_line_length + x * bpix / 8);
|
||||||
|
|
||||||
switch (bmp_bpix) {
|
switch (bmp_bpix) {
|
||||||
case 1: /* pass through */
|
case 1: /* pass through */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue