diff options
author | David Robillard <d@drobilla.net> | 2022-05-28 17:40:32 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-28 17:40:32 -0400 |
commit | 0d7e9777ccf8521bd6f828104ed4f64db470f406 (patch) | |
tree | c3fa85d4efab38b303c59e3d42ec8edb3b366ff8 /examples/pugl_vulkan_cpp_demo.cpp | |
parent | 2501218801437ea413091007b535d7c097801713 (diff) | |
download | pugl-0d7e9777ccf8521bd6f828104ed4f64db470f406.tar.gz pugl-0d7e9777ccf8521bd6f828104ed4f64db470f406.tar.bz2 pugl-0d7e9777ccf8521bd6f828104ed4f64db470f406.zip |
Avoid implicit conversions
Diffstat (limited to 'examples/pugl_vulkan_cpp_demo.cpp')
-rw-r--r-- | examples/pugl_vulkan_cpp_demo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/pugl_vulkan_cpp_demo.cpp b/examples/pugl_vulkan_cpp_demo.cpp index 61c7b80..fe86c30 100644 --- a/examples/pugl_vulkan_cpp_demo.cpp +++ b/examples/pugl_vulkan_cpp_demo.cpp @@ -1708,16 +1708,15 @@ run(const char* const programPath, { PuglVulkanDemo app{programPath, opts, numRects}; - VkResult r = VK_SUCCESS; - const auto width = app.extent.width; - const auto height = app.extent.height; + VkResult r = VK_SUCCESS; + const auto width = static_cast<PuglSpan>(app.extent.width); + const auto height = static_cast<PuglSpan>(app.extent.height); // Realize window so we can set up Vulkan app.world.setClassName("PuglVulkanCppDemo"); app.view.setWindowTitle("Pugl Vulkan C++ Demo"); app.view.setSizeHint(pugl::SizeHint::defaultSize, width, height); app.view.setSizeHint(pugl::SizeHint::minSize, width / 4, height / 4); - app.view.setSizeHint(pugl::SizeHint::maxSize, width * 4, height * 4); app.view.setBackend(pugl::vulkanBackend()); app.view.setHint(pugl::ViewHint::resizable, opts.resizable); const pugl::Status st = app.view.realize(); |