From 08c3990eb2db8c0228160d760cf287f0b6b96915 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 11 Mar 2024 17:00:49 +0100 Subject: min window size for unix systems, close #3 --- src/unix/main_unix.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/unix') 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 -- cgit v1.2.3-70-g09d2