From 00cf8ecb18b2024ba375c353ce9680d33512f65a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 12 Nov 2020 23:58:31 +0100 Subject: [PATCH] Set minimum window size to 720x480 --- source/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/window.cpp b/source/window.cpp index 3fc955b6f2b69..e0ac5f4de0686 100644 --- a/source/window.cpp +++ b/source/window.cpp @@ -133,6 +133,8 @@ namespace hex { Window::s_currShortcut = { key, mods }; }); + glfwSetWindowSizeLimits(this->m_window, 720, 480, GLFW_DONT_CARE, GLFW_DONT_CARE); + if (gladLoadGL() == 0) throw std::runtime_error("Failed to initialize OpenGL loader!"); }