Skip to content
Snippets Groups Projects
Commit 8d46d5b1 authored by Liu Ying's avatar Liu Ying Committed by Anatolij Gustschin
Browse files

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: default avatarLiu Ying <Ying.Liu@freescale.com>
parent 8aba9dce
No related branches found
No related tags found
No related merge requests found
......@@ -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);
fb = (uchar *) (lcd_base +
(y + height - 1) * lcd_line_length + x);
(y + height - 1) * lcd_line_length + x * bpix / 8);
switch (bmp_bpix) {
case 1: /* pass through */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment