forked from len0rd/rockbox
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
This commit is contained in:
parent
a17ee5f282
commit
984cd6e568
2 changed files with 21 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue