diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-10-21 13:34:55 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-10-21 13:34:55 +1000 |
commit | 0b9db701a1d52c8a6d63ca692619b0dde47805d1 (patch) | |
tree | 0a7feae21974b21d0b15918aa438615f6bf1579b /demos | |
parent | 51f4435cd10cdf4b629d524c425923b293263268 (diff) | |
download | uGFX-0b9db701a1d52c8a6d63ca692619b0dde47805d1.tar.gz uGFX-0b9db701a1d52c8a6d63ca692619b0dde47805d1.tar.bz2 uGFX-0b9db701a1d52c8a6d63ca692619b0dde47805d1.zip |
Fix missing case in gdispStreamStop().
Add support for controllers that need flushing.
Add both automatic and manual flushing (via the gdispFlush() method)
Diffstat (limited to 'demos')
-rw-r--r-- | demos/modules/gdisp/gdisp_streaming/gfxconf.h | 1 | ||||
-rw-r--r-- | demos/modules/gdisp/gdisp_streaming/main.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/demos/modules/gdisp/gdisp_streaming/gfxconf.h b/demos/modules/gdisp/gdisp_streaming/gfxconf.h index 72bb0618..4db07fb9 100644 --- a/demos/modules/gdisp/gdisp_streaming/gfxconf.h +++ b/demos/modules/gdisp/gdisp_streaming/gfxconf.h @@ -19,6 +19,7 @@ #define GFX_USE_GMISC TRUE /* Features for the GDISP sub-system. */ +#define GDISP_NEED_AUTOFLUSH FALSE #define GDISP_NEED_VALIDATION TRUE #define GDISP_NEED_CLIP FALSE #define GDISP_NEED_TEXT FALSE diff --git a/demos/modules/gdisp/gdisp_streaming/main.c b/demos/modules/gdisp/gdisp_streaming/main.c index 41b900c3..774ee833 100644 --- a/demos/modules/gdisp/gdisp_streaming/main.c +++ b/demos/modules/gdisp/gdisp_streaming/main.c @@ -106,6 +106,9 @@ int main(void) { } gdispStreamStop(); + // Force a display update if the controller supports it + gdispFlush(); + // Calculate the new frame size (note this is a drawing optimisation only) minx = ballx - radius; miny = bally - radius; maxx = minx + ballcx; maxy = miny + ballcy; |