summaryrefslogtreecommitdiff
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)
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)