|
78 | 78 | HINSTANCE ApplicationHInstance = NULL; ///< our application instance
|
79 | 79 | HWND ApplicationHWnd = NULL; ///< our application window handle
|
80 | 80 | Bool ApplicationIsWindowed = false;
|
| 81 | + |
| 82 | + // =================== Community Fix Start ================= |
| 83 | + // Borderless Support - PR #327 // |
| 84 | +Bool ApplicationIsBorderless = false; |
| 85 | + // =================== Community Fix End ================= |
| 86 | + |
81 | 87 | Win32Mouse *TheWin32Mouse= NULL; ///< for the WndProc() only
|
82 | 88 | DWORD TheMessageTime = 0; ///< For getting the time that a message was posted from Windows.
|
83 | 89 |
|
@@ -696,7 +702,12 @@ static Bool initializeAppWindows( HINSTANCE hInstance, Int nCmdShow, Bool runWin
|
696 | 702 | // Create our main window
|
697 | 703 | windowStyle = WS_POPUP|WS_VISIBLE;
|
698 | 704 | if (runWindowed)
|
699 |
| - windowStyle |= WS_DLGFRAME | WS_CAPTION | WS_SYSMENU; |
| 705 | + // =================== Community Fix Start ================= |
| 706 | + // Borderless Support - PR #327 // |
| 707 | + if(!ApplicationIsBorderless) |
| 708 | + windowStyle |= WS_DLGFRAME | WS_CAPTION | WS_SYSMENU; |
| 709 | + // =================== Community Fix End ================= |
| 710 | + |
700 | 711 | else
|
701 | 712 | windowStyle |= WS_EX_TOPMOST | WS_SYSMENU;
|
702 | 713 |
|
@@ -926,6 +937,13 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
926 | 937 | //added a preparse step for this flag because it affects window creation style
|
927 | 938 | if (stricmp(token,"-win")==0)
|
928 | 939 | ApplicationIsWindowed=true;
|
| 940 | + |
| 941 | + // =================== Community Fix Start ================= |
| 942 | + // Borderless Support - PR #327 // |
| 943 | + if(stricmp(token,"-noborder")==0) |
| 944 | + ApplicationIsBorderless=true;) |
| 945 | + // =================== Community Fix End ================= |
| 946 | + |
929 | 947 | token = nextParam(NULL, "\" ");
|
930 | 948 | }
|
931 | 949 |
|
|
0 commit comments