diff options
Diffstat (limited to 'apps/plugins/rockboy/lcd.c')
-rw-r--r-- | apps/plugins/rockboy/lcd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c index e202e72b8b..637a44c9c9 100644 --- a/apps/plugins/rockboy/lcd.c +++ b/apps/plugins/rockboy/lcd.c | |||
@@ -739,13 +739,14 @@ void lcd_refreshline(void) | |||
739 | if (!(R_LCDC & 0x80)) | 739 | if (!(R_LCDC & 0x80)) |
740 | return; /* should not happen... */ | 740 | return; /* should not happen... */ |
741 | 741 | ||
742 | if ( ((fb.mode==0)&&(R_LY >= 128)) || | ||
743 | ((fb.mode==1)&&(R_LY < 16)) || | ||
744 | ((fb.mode==2)&&((R_LY<8)||(R_LY>=136))) | ||
745 | |||
742 | #if LCD_HEIGHT == 64 | 746 | #if LCD_HEIGHT == 64 |
743 | if ( ((fb.mode==0)&&(R_LY >= 128 || R_LY & 1)) || | 747 | || (R_LY & 1) /* calculate only even lines */ |
744 | ((fb.mode==1)&&(R_LY < 16 || R_LY & 1))) /* calculate only even lines */ | ||
745 | #else | ||
746 | if ( ((fb.mode==0)&&(R_LY >= 128)) || | ||
747 | ((fb.mode==1)&&(R_LY < 16))) | ||
748 | #endif | 748 | #endif |
749 | ) | ||
749 | return; | 750 | return; |
750 | 751 | ||
751 | updatepatpix(); | 752 | updatepatpix(); |