From c143950dd1d5d871f79a15e91843c3e3152825f2 Mon Sep 17 00:00:00 2001 From: Tillsunset <35825944+Tillsunset@users.noreply.github.com> Date: Sat, 29 Oct 2022 18:40:53 -0500 Subject: [PATCH] Fix fullscreen on macos (#429) --- src/gui/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index e8d1c920..57db82bf 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -281,6 +281,10 @@ MainWindow::MainWindow() SetClientSize(1280, 720); SetIcon(wxICON(M_WND_ICON128)); +#if BOOST_OS_MACOS + this->EnableFullScreenView(true); +#endif + #if BOOST_OS_WINDOWS HICON hWindowIcon = (HICON)LoadImageA(NULL, "M_WND_ICON16", IMAGE_ICON, 16, 16, LR_LOADFROMFILE); SendMessage(this->GetHWND(), WM_SETICON, ICON_SMALL, (LPARAM)hWindowIcon);