force no titlebar in full screen mode

This commit is contained in:
itsmattkc 2021-11-02 17:24:18 -07:00
parent 92564f1799
commit fa70d36585

View file

@ -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;