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:
parent
8cca95bd48
commit
afc9b57c20
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ int read_bmp_file(char* filename,
|
||||||
width = readlong(fh.Width);
|
width = readlong(fh.Width);
|
||||||
|
|
||||||
/* PaddedWidth = ((width+31)&(~0x1f))/8; */
|
/* PaddedWidth = ((width+31)&(~0x1f))/8; */
|
||||||
PaddedWidth = ((width+7)&(~0x7));
|
PaddedWidth = ((width+3)&(~0x3));
|
||||||
size = PaddedWidth*readlong(fh.Height);
|
size = PaddedWidth*readlong(fh.Height);
|
||||||
|
|
||||||
bmp = (unsigned char *)malloc(size);
|
bmp = (unsigned char *)malloc(size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue