summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/lcd.c
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-03-04 11:01:33 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-03-04 11:01:33 +0000
commitca2e99b4be0155abc90033ba2757f39d3ede9713 (patch)
tree2e6db5b2c392bc3ef53f31bdaf4dd71eac514410 /apps/plugins/rockboy/lcd.c
parentee811a34433e88c965090fc9e936dc46db48f737 (diff)
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
Diffstat (limited to 'apps/plugins/rockboy/lcd.c')
-rw-r--r--apps/plugins/rockboy/lcd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c
index 16a97e3ef0..e202e72b8b 100644
--- a/apps/plugins/rockboy/lcd.c
+++ b/apps/plugins/rockboy/lcd.c
@@ -754,8 +754,12 @@ void lcd_refreshline(void)
#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;
S = X >> 3;
@@ -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;
}