From 12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a Mon Sep 17 00:00:00 2001 From: Moshe Piekarski Date: Tue, 6 Oct 2020 13:34:04 -0500 Subject: make the plugin API frambuffer agnostic Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e --- apps/plugins/zxbox/zxvid_2bpp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/zxbox/zxvid_2bpp.c') diff --git a/apps/plugins/zxbox/zxvid_2bpp.c b/apps/plugins/zxbox/zxvid_2bpp.c index 9f98ab4cfb..9772625387 100644 --- a/apps/plugins/zxbox/zxvid_2bpp.c +++ b/apps/plugins/zxbox/zxvid_2bpp.c @@ -51,7 +51,7 @@ void update_screen(void) #if LCD_PIXELFORMAT == HORIZONTAL_PACKING for(y = 0; y < LCD_HEIGHT; y++) { - frameb = rb->lcd_framebuffer + (y) * FB_WIDTH; + frameb = *rb->lcd_framebuffer + (y) * FB_WIDTH; srcx = 0; /* reset our x counter before each row... */ for(x = 0; x < LCD_WIDTH; x++) { @@ -67,7 +67,7 @@ void update_screen(void) int shift; for(y = 0; y < LCD_HEIGHT; y++) { - frameb = rb->lcd_framebuffer + (y/4) * LCD_WIDTH; + frameb = *rb->lcd_framebuffer + (y/4) * LCD_WIDTH; srcx = 0; /* reset our x counter before each row... */ shift = ((y & 3 ) * 2 ); mask = ~pixmask[y & 3]; @@ -84,7 +84,7 @@ void update_screen(void) int shift; for(y = 0; y < LCD_HEIGHT; y++) { - frameb = rb->lcd_framebuffer + (y/8) * LCD_WIDTH; + frameb = *rb->lcd_framebuffer + (y/8) * LCD_WIDTH; srcx = 0; /* reset our x counter before each row... */ shift = (y & 7); mask = ~pixmask[y & 7]; -- cgit v1.2.3