diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2006-01-30 21:35:34 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2006-01-30 21:35:34 +0000 |
commit | 3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a (patch) | |
tree | 2ed7b0dd781149c6228a83fba7819f6b2d2ac5a1 /apps/recorder | |
parent | 5ffa8c52df2df1096c484efe6815ea8e8b548065 (diff) | |
download | rockbox-3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a.tar.gz rockbox-3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a.zip |
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
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 806d97081b..eb9bf903a6 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -197,7 +197,7 @@ int read_bmp_file(char* filename, | |||
197 | totalsize = PaddedHeight * width; | 197 | totalsize = PaddedHeight * width; |
198 | } else { | 198 | } else { |
199 | #if LCD_DEPTH == 2 | 199 | #if LCD_DEPTH == 2 |
200 | PaddedHeight = height/4; | 200 | PaddedHeight = (height + 3) / 4; |
201 | #else | 201 | #else |
202 | PaddedHeight = height; | 202 | PaddedHeight = height; |
203 | #endif | 203 | #endif |