mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 01:52:35 -05:00
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;
|
totalsize = PaddedHeight * width;
|
||||||
} else {
|
} else {
|
||||||
#if LCD_DEPTH == 2
|
#if LCD_DEPTH == 2
|
||||||
PaddedHeight = height/4;
|
PaddedHeight = (height + 3) / 4;
|
||||||
#else
|
#else
|
||||||
PaddedHeight = height;
|
PaddedHeight = height;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue