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 /firmware/export/lcd.h | |
parent | 5d5f8169b53fc989b456b0f0d7940bcf9415cbeb (diff) | |
download | rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.tar.gz rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.zip |
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r-- | firmware/export/lcd.h | 3 |
1 files changed, 1 insertions, 2 deletions
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 |