aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/UC1601s
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-03-10 20:36:12 +1000
committerinmarket <andrewh@inmarket.com.au>2018-03-10 20:36:12 +1000
commit94f1cc2f0a4db0c6f1483e6d648068e031bcc094 (patch)
tree97f50372239108ec9e6e75a3d56e808e479cb7be /drivers/gdisp/UC1601s
parentf265924396167729e8d9fb36a0383263f36c1270 (diff)
downloaduGFX-94f1cc2f0a4db0c6f1483e6d648068e031bcc094.tar.gz
uGFX-94f1cc2f0a4db0c6f1483e6d648068e031bcc094.tar.bz2
uGFX-94f1cc2f0a4db0c6f1483e6d648068e031bcc094.zip
Change new colors to GFX_RED instead of GFXRED. Use the new color defs
Diffstat (limited to 'drivers/gdisp/UC1601s')
-rw-r--r--drivers/gdisp/UC1601s/gdisp_lld_UC1601s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gdisp/UC1601s/gdisp_lld_UC1601s.c b/drivers/gdisp/UC1601s/gdisp_lld_UC1601s.c
index cd538628..a6d15c26 100644
--- a/drivers/gdisp/UC1601s/gdisp_lld_UC1601s.c
+++ b/drivers/gdisp/UC1601s/gdisp_lld_UC1601s.c
@@ -165,7 +165,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
y = g->p.y;
#endif
- if (gdispColor2Native(g->p.color) != Black) {
+ if (gdispColor2Native(g->p.color) != GFX_BLACK) {
RAM(g)[xyaddr(x, y)] |= xybit(y);
} else {
RAM(g)[xyaddr(x, y)] &= ~xybit(y);
@@ -198,7 +198,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