diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-04 12:48:29 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-04 12:48:29 +0000 |
commit | 984cd6e568c841f4110f070161ad28fbe4c85342 (patch) | |
tree | 862b29ed5a591a6032a2001177cd7d7019306e88 /apps/plugins/rockboy/lcd.c | |
parent | a17ee5f282457dcd3dbfdb3edbd69e5fe70e706f (diff) |
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
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) 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(); |