1
0
Fork 0
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:
Magnus Holmgren 2006-01-31 21:59:47 +00:00
parent 5f0b75ebc7
commit fe1c9f5846

View file

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