Skip to content

Instantly share code, notes, and snippets.

@kilbith
Created January 24, 2023 15:46
Show Gist options
  • Save kilbith/1f27f870a29d1ca87743fa6db17ebd32 to your computer and use it in GitHub Desktop.
Save kilbith/1f27f870a29d1ca87743fa6db17ebd32 to your computer and use it in GitHub Desktop.
Maximize window by default
diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp
index a58b0efe6..1aebaa4e0 100644
--- a/src/client/renderingengine.cpp
+++ b/src/client/renderingengine.cpp
@@ -146,6 +146,7 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
auto skin = createSkin(m_device->getGUIEnvironment(),
gui::EGST_WINDOWS_METALLIC, driver);
m_device->getGUIEnvironment()->setSkin(skin);
+ m_device->maximizeWindow();
skin->drop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment