Skip to content

Commit a0d9145

Browse files
committed
Comments
1 parent 195b2b5 commit a0d9145

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

Generals/Code/Main/WinMain.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,7 @@
7575
HINSTANCE ApplicationHInstance = NULL; ///< our application instance
7676
HWND ApplicationHWnd = NULL; ///< our application window handle
7777
Bool ApplicationIsWindowed = false;
78-
79-
// =================== Community Fix Start =================
80-
// Borderless Support - PR #327 //
81-
Bool ApplicationIsBorderless = false;
82-
// =================== Community Fix End =================
83-
78+
Bool ApplicationIsBorderless = false; // TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
8479
Win32Mouse *TheWin32Mouse= NULL; ///< for the WndProc() only
8580
DWORD TheMessageTime = 0; ///< For getting the time that a message was posted from Windows.
8681

@@ -680,12 +675,9 @@ static Bool initializeAppWindows( HINSTANCE hInstance, Int nCmdShow, Bool runWin
680675
// Create our main window
681676
windowStyle = WS_POPUP|WS_VISIBLE;
682677
if (runWindowed)
683-
// =================== Community Fix Start =================
684-
// Borderless Support - PR #327 //
678+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
685679
if(!ApplicationIsBorderless)
686680
windowStyle |= WS_DLGFRAME | WS_CAPTION | WS_SYSMENU;
687-
// =================== Community Fix End =================
688-
689681
else
690682
windowStyle |= WS_EX_TOPMOST | WS_SYSMENU;
691683

@@ -912,11 +904,9 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
912904
//added a preparse step for this flag because it affects window creation style
913905
if (stricmp(token,"-win")==0)
914906
ApplicationIsWindowed=true;
915-
// =================== Community Fix Start =================
916-
// Borderless Support - PR #327 //
907+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
917908
if(stricmp(token,"-noborder")==0)
918909
ApplicationIsBorderless=true;
919-
// =================== Community Fix End =================
920910

921911
token = nextParam(NULL, "\" ");
922912
}

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,7 @@
7878
HINSTANCE ApplicationHInstance = NULL; ///< our application instance
7979
HWND ApplicationHWnd = NULL; ///< our application window handle
8080
Bool ApplicationIsWindowed = false;
81-
82-
// =================== Community Fix Start =================
83-
// Borderless Support - PR #327 //
84-
Bool ApplicationIsBorderless = false;
85-
// =================== Community Fix End =================
86-
81+
Bool ApplicationIsBorderless = false; // TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
8782
Win32Mouse *TheWin32Mouse= NULL; ///< for the WndProc() only
8883
DWORD TheMessageTime = 0; ///< For getting the time that a message was posted from Windows.
8984

@@ -702,12 +697,9 @@ static Bool initializeAppWindows( HINSTANCE hInstance, Int nCmdShow, Bool runWin
702697
// Create our main window
703698
windowStyle = WS_POPUP|WS_VISIBLE;
704699
if (runWindowed)
705-
// =================== Community Fix Start =================
706-
// Borderless Support - PR #327 //
700+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
707701
if(!ApplicationIsBorderless)
708702
windowStyle |= WS_DLGFRAME | WS_CAPTION | WS_SYSMENU;
709-
// =================== Community Fix End =================
710-
711703
else
712704
windowStyle |= WS_EX_TOPMOST | WS_SYSMENU;
713705

@@ -938,11 +930,9 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
938930
if (stricmp(token,"-win")==0)
939931
ApplicationIsWindowed=true;
940932

941-
// =================== Community Fix Start =================
942-
// Borderless Support - PR #327 //
933+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
943934
if(stricmp(token,"-noborder")==0)
944935
ApplicationIsBorderless=true;)
945-
// =================== Community Fix End =================
946936

947937
token = nextParam(NULL, "\" ");
948938
}

0 commit comments

Comments
 (0)