summaryrefslogtreecommitdiff
path: root/apps/recorder/bmp.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2006-01-31 21:59:47 +0000
committerMagnus Holmgren <magnushol@gmail.com>2006-01-31 21:59:47 +0000
commitfe1c9f5846e8ccf35659c433f36c7c95741aeae7 (patch)
treed85659d8d19227f41587d24eb6e9a1084216726a /apps/recorder/bmp.c
parent5f0b75ebc7156feb4f846091a15665b95095b37a (diff)
downloadrockbox-fe1c9f5846e8ccf35659c433f36c7c95741aeae7.tar.gz
rockbox-fe1c9f5846e8ccf35659c433f36c7c95741aeae7.zip
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
Diffstat (limited to 'apps/recorder/bmp.c')
-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 4b87b20883..1d4d8147b1 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -232,7 +232,7 @@ int read_bmp_file(char* filename,
232 232
233#if LCD_DEPTH == 2 233#if LCD_DEPTH == 2
234 if(format == FORMAT_NATIVE) 234 if(format == FORMAT_NATIVE)
235 memset(bitmap, 0, width * height / 4); 235 memset(bitmap, 0, totalsize);
236#endif 236#endif
237 237
238#if LCD_DEPTH > 1 238#if LCD_DEPTH > 1