diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_cairo_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_clipboard_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_cpp_demo.cpp | 2 | ||||
-rw-r--r-- | examples/pugl_cursor_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_embed_demo.c | 4 | ||||
-rw-r--r-- | examples/pugl_management_demo.c | 4 | ||||
-rw-r--r-- | examples/pugl_print_events.c | 2 | ||||
-rw-r--r-- | examples/pugl_shader_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_vulkan_cpp_demo.cpp | 2 | ||||
-rw-r--r-- | examples/pugl_vulkan_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_window_demo.c | 2 |
11 files changed, 13 insertions, 13 deletions
diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c index c0e89c7..3192183 100644 --- a/examples/pugl_cairo_demo.c +++ b/examples/pugl_cairo_demo.c @@ -230,7 +230,7 @@ main(int argc, char** argv) return logError("Failed to create window (%s)\n", puglStrerror(st)); } - puglShow(view); + puglShow(view, PUGL_SHOW_PASSIVE); PuglFpsPrinter fpsPrinter = {puglGetTime(app.world)}; const double timeout = app.opts.continuous ? (1 / 60.0) : -1.0; diff --git a/examples/pugl_clipboard_demo.c b/examples/pugl_clipboard_demo.c index 9b5fb28..ddb29e0 100644 --- a/examples/pugl_clipboard_demo.c +++ b/examples/pugl_clipboard_demo.c @@ -237,7 +237,7 @@ main(int argc, char** argv) return logError("Failed to realize view (%s)\n", puglStrerror(st)); } - if ((st = puglShow(view))) { + if ((st = puglShow(view, PUGL_SHOW_PASSIVE))) { return logError("Failed to show view (%s)\n", puglStrerror(st)); } diff --git a/examples/pugl_cpp_demo.cpp b/examples/pugl_cpp_demo.cpp index 6abe45b..49d547f 100644 --- a/examples/pugl_cpp_demo.cpp +++ b/examples/pugl_cpp_demo.cpp @@ -127,7 +127,7 @@ main(int argc, char** argv) view.setHint(pugl::ViewHint::swapInterval, opts.sync); view.setHint(pugl::ViewHint::ignoreKeyRepeat, opts.ignoreKeyRepeat); view.realize(); - view.show(); + view.show(pugl::ShowCommand::passive); unsigned framesDrawn = 0; while (!view.quit()) { diff --git a/examples/pugl_cursor_demo.c b/examples/pugl_cursor_demo.c index ccece41..50bf0da 100644 --- a/examples/pugl_cursor_demo.c +++ b/examples/pugl_cursor_demo.c @@ -143,7 +143,7 @@ main(int argc, char** argv) return logError("Failed to create window (%s)\n", puglStrerror(st)); } - puglShow(view); + puglShow(view, PUGL_SHOW_PASSIVE); while (!app.quit) { puglUpdate(app.world, -1.0); diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c index 59d8e2b..5c75ffc 100644 --- a/examples/pugl_embed_demo.c +++ b/examples/pugl_embed_demo.c @@ -304,8 +304,8 @@ main(int argc, char** argv) return logError("Failed to create child window (%s)\n", puglStrerror(st)); } - puglShow(app.parent); - puglShow(app.child); + puglShow(app.parent, PUGL_SHOW_PASSIVE); + puglShow(app.child, PUGL_SHOW_PASSIVE); puglStartTimer(app.child, reverseTimerId, 3.6); diff --git a/examples/pugl_management_demo.c b/examples/pugl_management_demo.c index 6a62668..87b4e09 100644 --- a/examples/pugl_management_demo.c +++ b/examples/pugl_management_demo.c @@ -121,7 +121,7 @@ toggleDialog(DemoApp* const app) puglSetWindowTitle(app->dialogView.view, "Dialog"); } - return puglShow(app->dialogView.view); + return puglShow(app->dialogView.view, PUGL_SHOW_PASSIVE); } static PuglStatus @@ -250,7 +250,7 @@ main(int argc, char** argv) return logError("Failed to realize view (%s)\n", puglStrerror(st)); } - puglShow(app.mainView.view); + puglShow(app.mainView.view, PUGL_SHOW_PASSIVE); while (!app.quit) { puglUpdate(app.world, -1.0); diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c index 3c07873..a9fa945 100644 --- a/examples/pugl_print_events.c +++ b/examples/pugl_print_events.c @@ -53,7 +53,7 @@ main(void) return logError("Failed to create window (%s)\n", puglStrerror(st)); } - puglShow(app.view); + puglShow(app.view, PUGL_SHOW_PASSIVE); while (!app.quit) { puglUpdate(app.world, -1.0); diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c index cea6d0a..d8b9252 100644 --- a/examples/pugl_shader_demo.c +++ b/examples/pugl_shader_demo.c @@ -453,7 +453,7 @@ main(int argc, char** argv) // Show window printViewHints(app.view); - puglShow(app.view); + puglShow(app.view, PUGL_SHOW_PASSIVE); // Grind away, drawing continuously const double startTime = puglGetTime(app.world); diff --git a/examples/pugl_vulkan_cpp_demo.cpp b/examples/pugl_vulkan_cpp_demo.cpp index 487fab2..1537920 100644 --- a/examples/pugl_vulkan_cpp_demo.cpp +++ b/examples/pugl_vulkan_cpp_demo.cpp @@ -1778,7 +1778,7 @@ run(const char* const programPath, const double timeout = app.opts.sync ? frameDuration : 0.0; PuglFpsPrinter fpsPrinter = {app.world.time()}; - app.view.show(); + app.view.show(pugl::ShowCommand::passive); while (!app.quit) { app.world.update(timeout); puglPrintFps(app.world.cobj(), &fpsPrinter, &app.framesDrawn); diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c index ec465bb..5fe7100 100644 --- a/examples/pugl_vulkan_demo.c +++ b/examples/pugl_vulkan_demo.c @@ -1101,7 +1101,7 @@ main(int argc, char** argv) printf("Swapchain images: %u\n", app.vk.swapchain->nImages); PuglFpsPrinter fpsPrinter = {puglGetTime(app.world)}; - puglShow(app.view); + puglShow(app.view, PUGL_SHOW_PASSIVE); while (!app.quit) { puglUpdate(app.world, -1.0); diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 1827991..4596b61 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -213,7 +213,7 @@ main(int argc, char** argv) return logError("Failed to create window (%s)\n", puglStrerror(st)); } - puglShow(view); + puglShow(view, PUGL_SHOW_PASSIVE); } PuglFpsPrinter fpsPrinter = {puglGetTime(app.world)}; |