summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2006-01-30 21:35:34 +0000
committerMagnus Holmgren <magnushol@gmail.com>2006-01-30 21:35:34 +0000
commit3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a (patch)
tree2ed7b0dd781149c6228a83fba7819f6b2d2ac5a1
parent5ffa8c52df2df1096c484efe6815ea8e8b548065 (diff)
downloadrockbox-3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a.tar.gz
rockbox-3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a.tar.bz2
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
-rw-r--r--apps/recorder/bmp.c2
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,
totalsize = PaddedHeight * width;
} else {
#if LCD_DEPTH == 2
- PaddedHeight = height/4;
+ PaddedHeight = (height + 3) / 4;
#else
PaddedHeight = height;
#endif