1
0
Fork 0
forked from len0rd/rockbox

(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
This commit is contained in:
Daniel Stenberg 2002-08-16 14:07:43 +00:00
parent 8cca95bd48
commit afc9b57c20

View file

@ -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);