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:
parent
85faccb797
commit
542d9b5942
1 changed files with 2 additions and 8 deletions
10
apps/misc.c
10
apps/misc.c
|
@ -367,15 +367,9 @@ void screen_dump(void)
|
||||||
for (bx = LCD_WIDTH/4; bx > 0; bx--)
|
for (bx = LCD_WIDTH/4; bx > 0; bx--)
|
||||||
{
|
{
|
||||||
unsigned src_byte = *src++;
|
unsigned src_byte = *src++;
|
||||||
unsigned tmp;
|
|
||||||
|
|
||||||
tmp = src_byte & 3;
|
*dst++ = ((src_byte >> 2) & 0x30) | ((src_byte >> 4) & 0x03);
|
||||||
src_byte >>= 2;
|
*dst++ = ((src_byte << 2) & 0x30) | (src_byte & 0x03);
|
||||||
*dst++ = (tmp << 4) | (src_byte & 3);
|
|
||||||
src_byte >>= 2;
|
|
||||||
tmp = src_byte & 3;
|
|
||||||
src_byte >>= 2;
|
|
||||||
*dst++ = (tmp << 4) | (src_byte & 3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
write(fh, line_block, sizeof(line_block));
|
write(fh, line_block, sizeof(line_block));
|
||||||
|
|
Loading…
Reference in a new issue