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:
Magnus Holmgren 2006-01-30 21:35:34 +00:00
parent 5ffa8c52df
commit 3b8934d6d1

View file

@ -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