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/rockboy/sys_rockbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/rockboy/sys_rockbox.c') diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c index e27cbbe3e7..364176ce2d 100644 --- a/apps/plugins/rockboy/sys_rockbox.c +++ b/apps/plugins/rockboy/sys_rockbox.c @@ -290,7 +290,7 @@ void vid_update(int scanline) else if (fb.mode==2) scanline-=8; scanline_remapped = scanline / 16; - frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; + frameb = *rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; while (cnt < 160) { balance += LCD_WIDTH; if (balance > 0) @@ -316,7 +316,7 @@ void vid_update(int scanline) else if (fb.mode==2) scanline-=8; scanline_remapped = scanline / 4; - frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; + frameb = *rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; while (cnt < 160) { *(frameb++) = (scan.buf[0][cnt]&0x3) | ((scan.buf[1][cnt]&0x3)<<2) | -- cgit v1.2.3