Greyscale ipods: Fixed screendump for the (not-so-) new framebuffer format.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9873 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-05-03 21:26:38 +00:00
parent 85faccb797
commit 542d9b5942

View file

@ -367,15 +367,9 @@ void screen_dump(void)
for (bx = LCD_WIDTH/4; bx > 0; bx--)
{
unsigned src_byte = *src++;
unsigned tmp;
tmp = src_byte & 3;
src_byte >>= 2;
*dst++ = (tmp << 4) | (src_byte & 3);
src_byte >>= 2;
tmp = src_byte & 3;
src_byte >>= 2;
*dst++ = (tmp << 4) | (src_byte & 3);
*dst++ = ((src_byte >> 2) & 0x30) | ((src_byte >> 4) & 0x03);
*dst++ = ((src_byte << 2) & 0x30) | (src_byte & 0x03);
}
write(fh, line_block, sizeof(line_block));