Iriver: Calculate proper height (i.e., size) for grayscale bitmaps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8496 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5ffa8c52df
commit
3b8934d6d1
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ int read_bmp_file(char* filename,
|
|||
totalsize = PaddedHeight * width;
|
||||
} else {
|
||||
#if LCD_DEPTH == 2
|
||||
PaddedHeight = height/4;
|
||||
PaddedHeight = (height + 3) / 4;
|
||||
#else
|
||||
PaddedHeight = height;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue