Now start editor maximized

This commit is contained in:
Antoine Pilote
2024-08-07 12:59:40 -04:00
parent 0e8484f36d
commit bb8b3cfa27

View File

@@ -281,6 +281,10 @@ namespace Nuake
void Window::Maximize()
{
const auto monitor = glfwGetPrimaryMonitor();
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
Center();
SetSize({mode->width, mode->height});
glfwMaximizeWindow(m_Window);
}