Skip to content
Commit fecac46c authored by Tom Wai-Hong Tam's avatar Tom Wai-Hong Tam Committed by Anatolij Gustschin
Browse files

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: default avatarTom Wai-Hong Tam <waihong@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 395166cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment