forked from len0rd/rockbox
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
This commit is contained in:
parent
5d5f8169b5
commit
12f3ed1699
25 changed files with 92 additions and 93 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue