From fe1c9f5846e8ccf35659c433f36c7c95741aeae7 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Tue, 31 Jan 2006 21:59:47 +0000 Subject: Iriver: Another grayscale bmp loader bug fixed: clear the right amount of data, to avoid garbage in the images. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8510 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/recorder/bmp.c') diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 4b87b20883..1d4d8147b1 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -232,7 +232,7 @@ int read_bmp_file(char* filename, #if LCD_DEPTH == 2 if(format == FORMAT_NATIVE) - memset(bitmap, 0, width * height / 4); + memset(bitmap, 0, totalsize); #endif #if LCD_DEPTH > 1 -- cgit v1.2.3