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)
downloadrockbox-ca2e99b4be0155abc90033ba2757f39d3ede9713.tar.gz
rockbox-ca2e99b4be0155abc90033ba2757f39d3ede9713.zip
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)
754#if LCD_HEIGHT == 64 754#if LCD_HEIGHT == 64
755 scanline_ind = (L/2) % 8; 755 scanline_ind = (L/2) % 8;
756#else 756#else
757#ifdef GRAYSCALE
758 scanline_ind = L % 4;
759#else
757 scanline_ind = L % 8; 760 scanline_ind = L % 8;
758#endif 761#endif
762#endif
759 X = R_SCX; 763 X = R_SCX;
760 Y = (R_SCY + L) & 0xff; 764 Y = (R_SCY + L) & 0xff;
761 S = X >> 3; 765 S = X >> 3;
@@ -797,7 +801,11 @@ void lcd_refreshline(void)
797 if (scale == 1) density = 1; 801 if (scale == 1) density = 1;
798 dest = vdest; 802 dest = vdest;
799*/ 803*/
804#ifdef GRAYSCALE
805 if (scanline_ind == 3)
806#else
800 if (scanline_ind == 7) 807 if (scanline_ind == 7)
808#endif
801 vid_update(L); 809 vid_update(L);
802 // vdest += fb.pitch * scale; 810 // vdest += fb.pitch * scale;
803} 811}