aboutsummaryrefslogtreecommitdiffstats
path: root/include/gdisp
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-21 15:13:10 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-21 15:13:10 +1000
commit0535c67eab412e72223bc06a528c5bf7cd4aeb22 (patch)
tree1349ae0420683f03ed09ca6d8aca52acbc7af9b5 /include/gdisp
parent0b9db701a1d52c8a6d63ca692619b0dde47805d1 (diff)
downloaduGFX-0535c67eab412e72223bc06a528c5bf7cd4aeb22.tar.gz
uGFX-0535c67eab412e72223bc06a528c5bf7cd4aeb22.tar.bz2
uGFX-0535c67eab412e72223bc06a528c5bf7cd4aeb22.zip
Add support for a driver private area (as well as a board private area)
Diffstat (limited to 'include/gdisp')
-rw-r--r--include/gdisp/gdisp.h2
-rw-r--r--include/gdisp/lld/gdisp_lld.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h
index 006fa08b..1b17fabe 100644
--- a/include/gdisp/gdisp.h
+++ b/include/gdisp/gdisp.h
@@ -271,7 +271,7 @@ extern GDisplay *GDISP;
#elif GDISP_PIXELFORMAT == GDISP_PIXELFORMAT_MONO
typedef uint8_t color_t;
#define COLOR(c) ((color_t)(c))
- #define MASKCOLOR FALSE
+ #define MASKCOLOR TRUE
#define RGB2COLOR(r,g,b) ((r|g|b) ? 1 : 0)
#define HTML2COLOR(h) (h ? 1 : 0)
#define RED_OF(c) (c ? 255 : 0)
diff --git a/include/gdisp/lld/gdisp_lld.h b/include/gdisp/lld/gdisp_lld.h
index b5d9c699..6f3a5e5f 100644
--- a/include/gdisp/lld/gdisp_lld.h
+++ b/include/gdisp/lld/gdisp_lld.h
@@ -191,6 +191,7 @@ struct GDisplay {
#endif
void * priv; // A private area just for the drivers use.
+ void * board; // A private area just for the board interfaces use.
uint8_t systemdisplay;
uint8_t controllerdisplay;