mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2024-12-03 12:27:12 -05:00
force no titlebar in full screen mode
This commit is contained in:
parent
92564f1799
commit
fa70d36585
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue