]> git.sur5r.net Git - u-boot/commit
lcd: Fix BMP decode bug that skips the wrong padded row
authorTom Wai-Hong Tam <waihong@chromium.org>
Fri, 28 Sep 2012 15:11:14 +0000 (15:11 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 6 Nov 2012 23:57:22 +0000 (00:57 +0100)
commitfecac46cf8757dc4f00a7812310e060f3b0c6eb4
tree0f7b1409237a4cfdd473ef62a658f2810ba5b69c
parent395166cffbb427bfb0da051ac044118a592e5c0b
lcd: Fix BMP decode bug that skips the wrong padded row

This change fixed 2 things:
 - Rename padded_line to padded_width since it is (width + padded_row) not line.
 - When finished a line, should skip the padded_row that is
   (padded_width - width) instead of (width - padded_width).

Reference: http://en.wikipedia.org/wiki/BMP_file_format
Signed-off-by: Tom Wai-Hong Tam <waihong@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
common/lcd.c