From 3beaad8d0645488fa5b9a2f4983caae585f81312 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Fri, 13 Oct 2006 20:23:53 +0000 Subject: Adjust Pacbox for H10 5GB screen (128x128). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11216 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pacbox/pacbox_lcd.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'apps/plugins/pacbox/pacbox_lcd.c') diff --git a/apps/plugins/pacbox/pacbox_lcd.c b/apps/plugins/pacbox/pacbox_lcd.c index 5d126ef..e63ef4d 100644 --- a/apps/plugins/pacbox/pacbox_lcd.c +++ b/apps/plugins/pacbox/pacbox_lcd.c @@ -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= 144) && (LCD_HEIGHT >= 112) -- cgit v1.1