summaryrefslogtreecommitdiff
path: root/apps/plugins/pacbox/pacbox_lcd.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-13 20:23:53 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-13 20:23:53 +0000
commit3beaad8d0645488fa5b9a2f4983caae585f81312 (patch)
treeb047a23e4f320bcc0f61ad2a6cceb5322f0ac80f /apps/plugins/pacbox/pacbox_lcd.c
parent2239bbab047d294cce7b9f44db19a77a3ab4dc0d (diff)
downloadrockbox-3beaad8d0645488fa5b9a2f4983caae585f81312.tar.gz
rockbox-3beaad8d0645488fa5b9a2f4983caae585f81312.zip
Adjust Pacbox for H10 5GB screen (128x128).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11216 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pacbox/pacbox_lcd.c')
-rw-r--r--apps/plugins/pacbox/pacbox_lcd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/plugins/pacbox/pacbox_lcd.c b/apps/plugins/pacbox/pacbox_lcd.c
index 5d126efcf1..e63ef4dd31 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)
86 } 86 }
87 vbuf+=ScreenWidth; 87 vbuf+=ScreenWidth;
88 } 88 }
89#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128)
90 /* 0.5 scaling - display every other pixel = 112x144, crop to 112x128 */
91 (void)next_dst;
92 dst=&lcd_framebuffer[XOFS];
93
94 /* Skip first 16 lines */
95 vbuf+=ScreenWidth*YCLIP;
96
97 /* Show regular screen */
98 for (y=0;y<(ScreenHeight/2-YCLIP);y++) {
99 for (x=0;x<ScreenWidth/2;x++) {
100 *(dst++) = palette[*(vbuf)];
101 vbuf+=2;
102 }
103 dst += XOFS*2;
104 vbuf+=ScreenWidth;
105 }
89#endif 106#endif
90#else /* Greyscale LCDs */ 107#else /* Greyscale LCDs */
91#if (LCD_WIDTH >= 144) && (LCD_HEIGHT >= 112) 108#if (LCD_WIDTH >= 144) && (LCD_HEIGHT >= 112)