aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gdisp/gdisp_streaming
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-21 13:34:55 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-21 13:34:55 +1000
commit0b9db701a1d52c8a6d63ca692619b0dde47805d1 (patch)
tree0a7feae21974b21d0b15918aa438615f6bf1579b /demos/modules/gdisp/gdisp_streaming
parent51f4435cd10cdf4b629d524c425923b293263268 (diff)
downloaduGFX-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/modules/gdisp/gdisp_streaming')
-rw-r--r--demos/modules/gdisp/gdisp_streaming/gfxconf.h1
-rw-r--r--demos/modules/gdisp/gdisp_streaming/main.c3
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;