diff options
Diffstat (limited to 'src/unix')
| -rw-r--r-- | src/unix/main_unix.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unix/main_unix.cpp b/src/unix/main_unix.cpp index 86c38cd..f25111d 100644 --- a/src/unix/main_unix.cpp +++ b/src/unix/main_unix.cpp @@ -90,8 +90,11 @@ int main(int, char**) // Create window with graphics context GLFWwindow* window = glfwCreateWindow(1280, 720, "Text-Search", nullptr, nullptr); - if (window == nullptr) + if (window == nullptr) { return 1; + } + + glfwSetWindowSizeLimits(window, 800, 600, GLFW_DONT_CARE, GLFW_DONT_CARE); glfwMakeContextCurrent(window); glfwSwapInterval(1); // Enable vsync |
