diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-02-07 01:12:46 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-02-07 01:12:46 +1000 |
commit | b8eab8f0357d030a771cc830781e5afe807feb1a (patch) | |
tree | e0936e9d904ac27b0a17d7a9e929808403927641 | |
parent | 2d8c9bdcec25db3d3e4e3f9dc11c0c58ca349cac (diff) | |
download | uGFX-b8eab8f0357d030a771cc830781e5afe807feb1a.tar.gz uGFX-b8eab8f0357d030a771cc830781e5afe807feb1a.tar.bz2 uGFX-b8eab8f0357d030a771cc830781e5afe807feb1a.zip |
More fixes to TLS8204 driver
-rw-r--r-- | docs/releases.txt | 2 | ||||
-rw-r--r-- | drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/releases.txt b/docs/releases.txt index fcb5a8bf..025fd3b6 100644 --- a/docs/releases.txt +++ b/docs/releases.txt @@ -18,6 +18,8 @@ FEATURE: Add a checkbox "Toggle Button" custom draw FEATURE: Add Tetris as an application demo FEATURE: Add HY-MiniSTM32V board support FEATURE: Add GWIN feature to flash any window/widget +FIX: Lots of GDISP monochrome drivers fixed +FEATURE: Added TLS8204 GDISP driver *** Release 2.2 *** diff --git a/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c b/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c index 2404fd4d..6e0f4371 100644 --- a/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c +++ b/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c @@ -182,14 +182,14 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { break; case GDISP_ROTATE_90: x = g->p.y; - y = GDISP_SCREEN_HEIGHT-1 - g->p.x; + y = GDISP_TLS8204_HEIGHT-1 - g->p.x; break; case GDISP_ROTATE_180: - x = GDISP_SCREEN_WIDTH-1 - g->p.x; - y = GDISP_SCREEN_HEIGHT-1 - g->p.y; + x = GDISP_TLS8204_WIDTH-1 - g->p.x; + y = GDISP_TLS8204_HEIGHT-1 - g->p.y; break; case GDISP_ROTATE_270: - x = GDISP_SCREEN_WIDTH-1 - g->p.y; + x = GDISP_TLS8204_WIDTH-1 - g->p.y; y = g->p.x; break; } |