From 9f00c243885706773692435373939a9449ccb627 Mon Sep 17 00:00:00 2001 From: Nicolas Caramelli Date: Thu, 7 Jan 2021 17:05:42 +0100 Subject: [PATCH] Fix long options for width and height --- base/vulkanexamplebase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index 68029abf..ce785541 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -715,11 +715,11 @@ VulkanExampleBase::VulkanExampleBase(bool enableValidation) if ((args[i] == std::string("-f")) || (args[i] == std::string("--fullscreen"))) { settings.fullscreen = true; } - if ((args[i] == std::string("-w")) || (args[i] == std::string("-width"))) { + if ((args[i] == std::string("-w")) || (args[i] == std::string("--width"))) { uint32_t w = strtol(args[i + 1], &numConvPtr, 10); if (numConvPtr != args[i + 1]) { width = w; }; } - if ((args[i] == std::string("-h")) || (args[i] == std::string("-height"))) { + if ((args[i] == std::string("-h")) || (args[i] == std::string("--height"))) { uint32_t h = strtol(args[i + 1], &numConvPtr, 10); if (numConvPtr != args[i + 1]) { height = h; }; }