Skip to content
Snippets Groups Projects
Commit f9dd1684 authored by Sebastian Gaida's avatar Sebastian Gaida
Browse files

[#8][Form] changed ternary operator to max

parent 96193aaf
No related branches found
No related tags found
1 merge request!9Resolve "Window creation"
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -14,8 +14,8 @@ namespace vkcv {
Window Window::create(const char *windowTitle, int width, int height, bool resizable) {
vkcv::initGLFW();
width = width <= 0 ? 1 : width;
height = height <= 0 ? 1 : height;
width = std::max(width, 1);
height = std::max(height, 1);
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
glfwWindowHint(GLFW_RESIZABLE, resizable ? GLFW_TRUE : GLFW_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment