summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox
diff options
context:
space:
mode:
authorMoshe Piekarski <dev.rockbox@melachim.net>2020-10-06 13:34:04 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-26 12:28:48 -0400
commit12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a (patch)
treecb9850c2c4ea68b7acc816828c4d53dd7c8391f9 /apps/plugins/zxbox
parent5d5f8169b53fc989b456b0f0d7940bcf9415cbeb (diff)
downloadrockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.tar.gz
rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.zip
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r--apps/plugins/zxbox/zxvid_16bpp.c4
-rw-r--r--apps/plugins/zxbox/zxvid_2bpp.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/zxbox/zxvid_16bpp.c b/apps/plugins/zxbox/zxvid_16bpp.c
index 6380d3d7d7..f8482e3147 100644
--- a/apps/plugins/zxbox/zxvid_16bpp.c
+++ b/apps/plugins/zxbox/zxvid_16bpp.c
@@ -58,7 +58,7 @@ void update_screen(void)
58 byte *scrptr; 58 byte *scrptr;
59 scrptr = (byte *) SPNM(image); 59 scrptr = (byte *) SPNM(image);
60 */ 60 */
61 frameb = rb->lcd_framebuffer; 61 frameb = *rb->lcd_framebuffer;
62 for ( y = 0 ; y < HEIGHT*WIDTH; y++ ){ 62 for ( y = 0 ; y < HEIGHT*WIDTH; y++ ){
63 frameb[y] = FB_SCALARPACK(_16bpp_colors[(unsigned)sp_image[y]]); 63 frameb[y] = FB_SCALARPACK(_16bpp_colors[(unsigned)sp_image[y]]);
64 } 64 }
@@ -68,7 +68,7 @@ void update_screen(void)
68 int srcx, srcy=0; /* x / y coordinates in source image */ 68 int srcx, srcy=0; /* x / y coordinates in source image */
69 unsigned char* image; 69 unsigned char* image;
70 image = sp_image + ( (Y_OFF)*(WIDTH) ) + X_OFF; 70 image = sp_image + ( (Y_OFF)*(WIDTH) ) + X_OFF;
71 frameb = rb->lcd_framebuffer; 71 frameb = *rb->lcd_framebuffer;
72 for(y = 0; y < LCD_HEIGHT; y++) 72 for(y = 0; y < LCD_HEIGHT; y++)
73 { 73 {
74 srcx = 0; /* reset our x counter before each row... */ 74 srcx = 0; /* reset our x counter before each row... */
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)
51#if LCD_PIXELFORMAT == HORIZONTAL_PACKING 51#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
52 for(y = 0; y < LCD_HEIGHT; y++) 52 for(y = 0; y < LCD_HEIGHT; y++)
53 { 53 {
54 frameb = rb->lcd_framebuffer + (y) * FB_WIDTH; 54 frameb = *rb->lcd_framebuffer + (y) * FB_WIDTH;
55 srcx = 0; /* reset our x counter before each row... */ 55 srcx = 0; /* reset our x counter before each row... */
56 for(x = 0; x < LCD_WIDTH; x++) 56 for(x = 0; x < LCD_WIDTH; x++)
57 { 57 {
@@ -67,7 +67,7 @@ void update_screen(void)
67 int shift; 67 int shift;
68 for(y = 0; y < LCD_HEIGHT; y++) 68 for(y = 0; y < LCD_HEIGHT; y++)
69 { 69 {
70 frameb = rb->lcd_framebuffer + (y/4) * LCD_WIDTH; 70 frameb = *rb->lcd_framebuffer + (y/4) * LCD_WIDTH;
71 srcx = 0; /* reset our x counter before each row... */ 71 srcx = 0; /* reset our x counter before each row... */
72 shift = ((y & 3 ) * 2 ); 72 shift = ((y & 3 ) * 2 );
73 mask = ~pixmask[y & 3]; 73 mask = ~pixmask[y & 3];
@@ -84,7 +84,7 @@ void update_screen(void)
84 int shift; 84 int shift;
85 for(y = 0; y < LCD_HEIGHT; y++) 85 for(y = 0; y < LCD_HEIGHT; y++)
86 { 86 {
87 frameb = rb->lcd_framebuffer + (y/8) * LCD_WIDTH; 87 frameb = *rb->lcd_framebuffer + (y/8) * LCD_WIDTH;
88 srcx = 0; /* reset our x counter before each row... */ 88 srcx = 0; /* reset our x counter before each row... */
89 shift = (y & 7); 89 shift = (y & 7);
90 mask = ~pixmask[y & 7]; 90 mask = ~pixmask[y & 7];