Fix UC1610 driver private area initialisation

release/v2.9
inmarket 2018-04-03 13:43:01 +10:00
parent a70cc09ff9
commit ef9d93f0ef
2 changed files with 10 additions and 3 deletions

View File

@ -16,6 +16,7 @@ FEATURE: Added GFX_COMPAT_OLDCOLORS to allow V2.x Red, Green, Blue color names.
CHANGE: Added GFX_RED, GFX_BLUE, GFX_GREEN etc to replace V2.x Red, Gree, Blue color names
CHANGE: Added GFXON/GFXOFF to replace V2.x TRUE/FALSE for configuration options.
FIX: Added gfxRealloc() to Qt port
FIX: Fixed UC1610 driver private area initialisation
*** Release 2.8 ***

View File

@ -96,6 +96,12 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
// The private area is the display surface + flush window structure.
g->priv = gfxAlloc(sizeof(UC1610_Window) + GDISP_SCREEN_WIDTH * GDISP_SCREEN_HEIGHT / UC1610_PAGE_HEIGHT);
// Clear the initial flush region
PRIV(g)->x1 = GDISP_SCREEN_WIDTH;
PRIV(g)->y1 = GDISP_SCREEN_HEIGHT;
PRIV(g)->x2 = -1;
PRIV(g)->y2 = -1;
// Initialise the board interface
init_board(g);