diff options
author | Moshe Piekarski <dev.rockbox@melachim.net> | 2020-10-06 13:34:04 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:28:48 -0400 |
commit | 12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a (patch) | |
tree | cb9850c2c4ea68b7acc816828c4d53dd7c8391f9 /apps/plugins/zxbox/zxvid_16bpp.c | |
parent | 5d5f8169b53fc989b456b0f0d7940bcf9415cbeb (diff) | |
download | rockbox-12f3ed1699.tar.gz rockbox-12f3ed1699.tar.bz2 rockbox-12f3ed1699.zip |
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
Diffstat (limited to 'apps/plugins/zxbox/zxvid_16bpp.c')
-rw-r--r-- | apps/plugins/zxbox/zxvid_16bpp.c | 4 |
1 files changed, 2 insertions, 2 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) byte *scrptr; scrptr = (byte *) SPNM(image); */ - frameb = rb->lcd_framebuffer; + frameb = *rb->lcd_framebuffer; for ( y = 0 ; y < HEIGHT*WIDTH; y++ ){ frameb[y] = FB_SCALARPACK(_16bpp_colors[(unsigned)sp_image[y]]); } @@ -68,7 +68,7 @@ void update_screen(void) int srcx, srcy=0; /* x / y coordinates in source image */ unsigned char* image; image = sp_image + ( (Y_OFF)*(WIDTH) ) + X_OFF; - frameb = rb->lcd_framebuffer; + frameb = *rb->lcd_framebuffer; for(y = 0; y < LCD_HEIGHT; y++) { srcx = 0; /* reset our x counter before each row... */ |