aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gdisp/gdisp_streaming/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gdisp/gdisp_streaming/main.c')
-rw-r--r--demos/modules/gdisp/gdisp_streaming/main.c3
1 files changed, 3 insertions, 0 deletions
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;