diff options
Diffstat (limited to 'common/lcd.c')
-rw-r--r-- | common/lcd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/lcd.c b/common/lcd.c index 859aef2..c46422e 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -746,7 +746,8 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y) height = panel_info.vl_row - y; bmap = (uchar *)bmp + le32_to_cpu (bmp->header.data_offset); - fb = (uchar *) (lcd_base + (y + height - 1) * lcd_line_length + x); + fb = (uchar *) (lcd_base + + (y + height - 1) * lcd_line_length + x * bpix / 8); switch (bmp_bpix) { case 1: /* pass through */ |