summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-16 14:07:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-16 14:07:43 +0000
commitafc9b57c20bce7062e03bab6ecc9e21f22bc67f9 (patch)
tree86c476ef00f452de393677e0ec1f5a37510bb239 /apps
parent8cca95bd48d491dbae8d061240ebe7414c2ecb00 (diff)
downloadrockbox-afc9b57c20bce7062e03bab6ecc9e21f22bc67f9.tar.gz
rockbox-afc9b57c20bce7062e03bab6ecc9e21f22bc67f9.zip
(while I remember this) The width padding is 4-byte aligned, nothing else...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1783 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 a35884c94c..6323cef681 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -185,7 +185,7 @@ int read_bmp_file(char* filename,
185 width = readlong(fh.Width); 185 width = readlong(fh.Width);
186 186
187 /* PaddedWidth = ((width+31)&(~0x1f))/8; */ 187 /* PaddedWidth = ((width+31)&(~0x1f))/8; */
188 PaddedWidth = ((width+7)&(~0x7)); 188 PaddedWidth = ((width+3)&(~0x3));
189 size = PaddedWidth*readlong(fh.Height); 189 size = PaddedWidth*readlong(fh.Height);
190 190
191 bmp = (unsigned char *)malloc(size); 191 bmp = (unsigned char *)malloc(size);