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/lib/grey_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/lib/grey_core.c') diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c index 55d0684103..9686f1d021 100644 --- a/apps/plugins/lib/grey_core.c +++ b/apps/plugins/lib/grey_core.c @@ -845,7 +845,7 @@ static void grey_screendump_hook(int fd) gsrc = _grey_info.values + _GREY_MULUQ(_grey_info.width, gy); #if LCD_DEPTH == 2 - src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_FBWIDTH, y); + src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_FBWIDTH, y); do { @@ -876,7 +876,7 @@ static void grey_screendump_hook(int fd) #if LCD_DEPTH == 1 mask = BIT_N(y & 7); - src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3); + src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3); do { @@ -908,7 +908,7 @@ static void grey_screendump_hook(int fd) #elif LCD_DEPTH == 2 shift = 2 * (y & 3); - src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 2); + src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 2); do { @@ -933,7 +933,7 @@ static void grey_screendump_hook(int fd) #if LCD_DEPTH == 2 shift = y & 7; - src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3); + src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3); do { -- cgit v1.2.3