Skip to content
Snippets Groups Projects

Resolve "Window creation"

Merged Ghost User requested to merge 8-window-creation into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
  • f9dd1684
    [#8][Form] changed ternary operator to max · f9dd1684
    Sebastian Gaida authored
+ 2
2
@@ -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);
Loading