1
0
Fork 0
forked from len0rd/rockbox

Grayscale support for rockboy - can't work without markuns patch,

needs rockbox' internal framebuffer in 2 bit (4 pixels / byte) format.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6132 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michiel Van Der Kolk 2005-03-04 11:01:33 +00:00
parent ee811a3443
commit ca2e99b4be
4 changed files with 29 additions and 2 deletions

View file

@ -753,8 +753,12 @@ void lcd_refreshline(void)
L = R_LY;
#if LCD_HEIGHT == 64
scanline_ind = (L/2) % 8;
#else
#ifdef GRAYSCALE
scanline_ind = L % 4;
#else
scanline_ind = L % 8;
#endif
#endif
X = R_SCX;
Y = (R_SCY + L) & 0xff;
@ -797,7 +801,11 @@ void lcd_refreshline(void)
if (scale == 1) density = 1;
dest = vdest;
*/
#ifdef GRAYSCALE
if (scanline_ind == 3)
#else
if (scanline_ind == 7)
#endif
vid_update(L);
// vdest += fb.pitch * scale;
}