summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pacbox/pacbox_lcd.c
diff options
context:
space:
mode:
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)
}
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)