From 984cd6e568c841f4110f070161ad28fbe4c85342 Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Fri, 4 Mar 2005 12:48:29 +0000 Subject: New lcd mode; drop top 8 and bottom 8 lines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6135 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/rockboy/lcd.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'apps/plugins/rockboy/lcd.c') 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) if (!(R_LCDC & 0x80)) return; /* should not happen... */ + if ( ((fb.mode==0)&&(R_LY >= 128)) || + ((fb.mode==1)&&(R_LY < 16)) || + ((fb.mode==2)&&((R_LY<8)||(R_LY>=136))) + #if LCD_HEIGHT == 64 - if ( ((fb.mode==0)&&(R_LY >= 128 || R_LY & 1)) || - ((fb.mode==1)&&(R_LY < 16 || R_LY & 1))) /* calculate only even lines */ -#else - if ( ((fb.mode==0)&&(R_LY >= 128)) || - ((fb.mode==1)&&(R_LY < 16))) + || (R_LY & 1) /* calculate only even lines */ #endif + ) return; updatepatpix(); -- cgit v1.2.3