mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
Adjust Pacbox for H10 5GB screen (128x128).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11216 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2239bbab04
commit
3beaad8d06
3 changed files with 28 additions and 2 deletions
|
|
@ -86,6 +86,23 @@ void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf)
|
|||
}
|
||||
vbuf+=ScreenWidth;
|
||||
}
|
||||
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128)
|
||||
/* 0.5 scaling - display every other pixel = 112x144, crop to 112x128 */
|
||||
(void)next_dst;
|
||||
dst=&lcd_framebuffer[XOFS];
|
||||
|
||||
/* Skip first 16 lines */
|
||||
vbuf+=ScreenWidth*YCLIP;
|
||||
|
||||
/* Show regular screen */
|
||||
for (y=0;y<(ScreenHeight/2-YCLIP);y++) {
|
||||
for (x=0;x<ScreenWidth/2;x++) {
|
||||
*(dst++) = palette[*(vbuf)];
|
||||
vbuf+=2;
|
||||
}
|
||||
dst += XOFS*2;
|
||||
vbuf+=ScreenWidth;
|
||||
}
|
||||
#endif
|
||||
#else /* Greyscale LCDs */
|
||||
#if (LCD_WIDTH >= 144) && (LCD_HEIGHT >= 112)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue