diff options
author | ergosys <ergosys@gmail.com> | 2014-12-13 14:44:01 -0800 |
---|---|---|
committer | ergosys <ergosys@gmail.com> | 2014-12-13 15:09:37 -0800 |
commit | d3b3020a078fff9607fd169c32210888ee6b0c5c (patch) | |
tree | 5026004a5008ee3b80bf02da45450b8ccc8de63c /drivers/gdisp/SSD1306 | |
parent | 9618d7917bea1cb9f753569f0ddef91714aae49f (diff) | |
download | uGFX-d3b3020a078fff9607fd169c32210888ee6b0c5c.tar.gz uGFX-d3b3020a078fff9607fd169c32210888ee6b0c5c.tar.bz2 uGFX-d3b3020a078fff9607fd169c32210888ee6b0c5c.zip |
use gdispColor2Native to get fill color
Diffstat (limited to 'drivers/gdisp/SSD1306')
-rw-r--r-- | drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c index 713c52bb..1885ffac 100644 --- a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c +++ b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c @@ -159,7 +159,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_HARDWARE_CLEARS LLDSPEC void gdisp_lld_clear(GDisplay *g) { - uint8_t fill = (g->p.color == Black) ? 0 : 0xff; + uint8_t fill = (gdispColor2Native(g->p.color) == Black) ? 0 : 0xff; int bytes = GDISP_SCREEN_WIDTH * GDISP_SCREEN_HEIGHT/8; memset(RAM(g), fill, bytes); g->flags |= GDISP_FLG_NEEDFLUSH; |