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 --- firmware/export/lcd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 9346a6815b..ae06307dca 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -434,13 +434,12 @@ static inline unsigned fb_to_scalar(fb_data p) #endif /* The actual framebuffer */ extern fb_data *lcd_framebuffer; -extern fb_data lcd_static_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH]; #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE #define FBADDR(x, y) (lcd_framebuffer + ((x) * LCD_FBHEIGHT) + (y)) #else #define FBADDR(x, y) (lcd_framebuffer + ((y) * LCD_FBWIDTH) + (x)) #endif -#define FRAMEBUFFER_SIZE (sizeof(lcd_static_framebuffer)) +#define FRAMEBUFFER_SIZE (sizeof(fb_data)*LCD_FBWIDTH*LCD_FBHEIGHT) /** Port-specific functions. Enable in port config file. **/ #ifdef HAVE_REMOTE_LCD_AS_MAIN -- cgit v1.2.3