diff options
Diffstat (limited to 'apps/plugins/rockboy/lcd.c')
-rw-r--r-- | apps/plugins/rockboy/lcd.c | 8 |
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 | } |