From 94f1cc2f0a4db0c6f1483e6d648068e031bcc094 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 10 Mar 2018 20:36:12 +1000 Subject: Change new colors to GFX_RED instead of GFXRED. Use the new color defs --- drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c') diff --git a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c index 08c66f1f..39d48317 100644 --- a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c +++ b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c @@ -209,7 +209,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { mask = 0xff << (sy&7); zpages = (ey / 8) - spage; - if (gdispColor2Native(g->p.color) == gdispColor2Native(Black)) { + if (gdispColor2Native(g->p.color) == gdispColor2Native(GFX_BLACK)) { while (zpages--) { for (col = sx; col <= ex; col++) base[col] &= ~mask; @@ -257,7 +257,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { y = g->p.x; break; } - if (gdispColor2Native(g->p.color) != gdispColor2Native(Black)) + if (gdispColor2Native(g->p.color) != gdispColor2Native(GFX_BLACK)) RAM(g)[xyaddr(x, y)] |= xybit(y); else RAM(g)[xyaddr(x, y)] &= ~xybit(y); @@ -288,7 +288,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { y = g->p.x; break; } - return (RAM(g)[xyaddr(x, y)] & xybit(y)) ? White : Black; + return (RAM(g)[xyaddr(x, y)] & xybit(y)) ? GFX_WHITE : GFX_BLACK; } #endif -- cgit v1.2.3