From 3b8934d6d107aaa1b3fc6321bb1d13a9aeedd82a Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Mon, 30 Jan 2006 21:35:34 +0000 Subject: [PATCH] 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 --- apps/recorder/bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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