diff options
Diffstat (limited to 'apps/plugins/pacbox/pacbox_lcd.c')
-rw-r--r-- | apps/plugins/pacbox/pacbox_lcd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/pacbox/pacbox_lcd.c b/apps/plugins/pacbox/pacbox_lcd.c index bf4aa9f028..172faf3f84 100644 --- a/apps/plugins/pacbox/pacbox_lcd.c +++ b/apps/plugins/pacbox/pacbox_lcd.c | |||
@@ -55,6 +55,16 @@ void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf) | |||
55 | dst+=LCD_WIDTH; | 55 | dst+=LCD_WIDTH; |
56 | } | 56 | } |
57 | } | 57 | } |
58 | #elif LCD_SCALE==100 && LCD_ROTATE==2 | ||
59 | /* Native resolution - rotated 270 degrees = 288x224 */ | ||
60 | next_dst=&lcd_framebuffer[(LCD_HEIGHT-YOFS)*LCD_WIDTH+XOFS]; | ||
61 | for( y=0; y<ScreenHeight; y++ ) { | ||
62 | dst = (next_dst++); | ||
63 | for( x=ScreenWidth-1; x>=0; x-- ) { | ||
64 | *dst = palette[*(vbuf++)]; | ||
65 | dst-=LCD_WIDTH; | ||
66 | } | ||
67 | } | ||
58 | #elif LCD_SCALE==75 && LCD_ROTATE==1 | 68 | #elif LCD_SCALE==75 && LCD_ROTATE==1 |
59 | /* 0.75 scaling - display 3 out of 4 pixels - rotated = 216x168 | 69 | /* 0.75 scaling - display 3 out of 4 pixels - rotated = 216x168 |
60 | Skipping pixel #2 out of 4 seems to give the most legible display | 70 | Skipping pixel #2 out of 4 seems to give the most legible display |