From ab7df6c8f3dfd820331ef96c217c0fc477972835 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Mar 2020 16:13:49 +0100 Subject: Window Demo: Only redisplay on update when running continuously --- examples/pugl_window_demo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 248d44e..175d782 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -129,7 +129,9 @@ onEvent(PuglView* view, const PuglEvent* event) reshapeCube((int)event->configure.width, (int)event->configure.height); break; case PUGL_UPDATE: - puglPostRedisplay(view); + if (app->continuous) { + puglPostRedisplay(view); + } break; case PUGL_EXPOSE: onDisplay(view); -- cgit v1.2.1