]> git.sur5r.net Git - u-boot/blobdiff - common/lcd.c
Respect memreserve regions specified in the device tree
[u-boot] / common / lcd.c
index d854c21e95ab377303bf18003f6cc28e16a57409..0555ab4fb72117ec6e903a68561d54c05dfce244 100644 (file)
@@ -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 */