From fa70d36585fc15e51618a50c37462a3fd2de20af Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 2 Nov 2021 17:24:18 -0700 Subject: [PATCH] force no titlebar in full screen mode --- lib/hooks.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/hooks.cpp b/lib/hooks.cpp index 41a5fe1..235f88d 100644 --- a/lib/hooks.cpp +++ b/lib/hooks.cpp @@ -17,6 +17,12 @@ void InterceptOutputDebugStringA(LPCSTR s) HWND WINAPI InterceptCreateWindowExA(DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam) { + // If full screen, hide the titlebar + if (config.GetInt(_T("FullScreen"))) { + dwStyle = WS_POPUP; + dwExStyle = 0; + } + // Grab a copy of the ISLE window so we can do stuff with it isleWindow = CreateWindowExA(dwExStyle, lpClassName, "LEGO Island: Rebuilt", dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); return isleWindow;