forked from len0rd/rockbox
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
This commit is contained in:
parent
5f0b75ebc7
commit
fe1c9f5846
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ int read_bmp_file(char* filename,
|
|||
|
||||
#if LCD_DEPTH == 2
|
||||
if(format == FORMAT_NATIVE)
|
||||
memset(bitmap, 0, width * height / 4);
|
||||
memset(bitmap, 0, totalsize);
|
||||
#endif
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue