From 1f2bb7e20131395a30fc4ce55740de6984d56f10 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 12 May 2023 17:09:01 -0400 Subject: Make examples continuous by default --- examples/pugl_vulkan_demo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c index 59e3060..2f9eaff 100644 --- a/examples/pugl_vulkan_demo.c +++ b/examples/pugl_vulkan_demo.c @@ -1,4 +1,4 @@ -// Copyright 2019-2020 David Robillard +// Copyright 2019-2023 David Robillard // Copyright 2019 Jordan Halase // SPDX-License-Identifier: ISC @@ -1008,6 +1008,8 @@ onEvent(PuglView* const view, const PuglEvent* const e) printEvent(e, "Event: ", app->opts.verbose); switch (e->type) { + case PUGL_UPDATE: + return app->opts.continuous ? puglPostRedisplay(view) : PUGL_SUCCESS; case PUGL_EXPOSE: return onExpose(view); case PUGL_CONFIGURE: -- cgit v1.2.1