Fix long options for width and height
This commit is contained in:
parent
846413cc4b
commit
9f00c24388
1 changed files with 2 additions and 2 deletions
|
|
@ -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; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue