From afc9b57c20bce7062e03bab6ecc9e21f22bc67f9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Aug 2002 14:07:43 +0000 Subject: (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 --- apps/recorder/bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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, width = readlong(fh.Width); /* PaddedWidth = ((width+31)&(~0x1f))/8; */ - PaddedWidth = ((width+7)&(~0x7)); + PaddedWidth = ((width+3)&(~0x3)); size = PaddedWidth*readlong(fh.Height); bmp = (unsigned char *)malloc(size); -- cgit v1.2.3