mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Now start editor maximized
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user