diff options
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; |