summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/lcd.c
diff options
context:
space:
mode:
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;
}