From cc8853a9ef93a2359b8575c38bba5119a0264d71 Mon Sep 17 00:00:00 2001 From: cochrane Date: Fri, 18 Nov 2016 21:58:12 +0100 Subject: [PATCH] Ensure window is centered on being created, not squished somewhere in the corner. --- src/platform/osx/main.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/osx/main.mm b/src/platform/osx/main.mm index d0c9bf8..a1e0f18 100644 --- a/src/platform/osx/main.mm +++ b/src/platform/osx/main.mm @@ -327,6 +327,7 @@ int main() { Game::init(); // show window + [mainWindow center]; [mainWindow makeKeyAndOrderFront:nil]; // Set up DisplayLink. This will call our callback in time with display