diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-11 17:00:49 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-11 17:00:49 +0100 |
| commit | 08c3990eb2db8c0228160d760cf287f0b6b96915 (patch) | |
| tree | 5351f41afb4cd4c9ac84de9e0d0a68857a6201bb /src/unix | |
| parent | 67f519a95e2e33f95eccaef80e470993bf9987a7 (diff) | |
min window size for unix systems, close #3
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 |
