From 0b9db701a1d52c8a6d63ca692619b0dde47805d1 Mon Sep 17 00:00:00 2001 From: inmarket Date: Mon, 21 Oct 2013 13:34:55 +1000 Subject: Fix missing case in gdispStreamStop(). Add support for controllers that need flushing. Add both automatic and manual flushing (via the gdispFlush() method) --- demos/modules/gdisp/gdisp_streaming/gfxconf.h | 1 + demos/modules/gdisp/gdisp_streaming/main.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'demos') 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; -- cgit v1.2.3