Skip to content

Commit

Permalink
Set minimum window size to 720x480
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Nov 12, 2020
1 parent 06fe80d commit 00cf8ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
Expand Down

0 comments on commit 00cf8ec

Please sign in to comment.