Skip to content

Commit 773404a

Browse files
committed
Comments
1 parent 195b2b5 commit 773404a

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

Generals/Code/Main/WinMain.cpp

Lines changed: 3 additions & 12 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,11 +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 =================
688681

689682
else
690683
windowStyle |= WS_EX_TOPMOST | WS_SYSMENU;
@@ -912,11 +905,9 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
912905
//added a preparse step for this flag because it affects window creation style
913906
if (stricmp(token,"-win")==0)
914907
ApplicationIsWindowed=true;
915-
// =================== Community Fix Start =================
916-
// Borderless Support - PR #327 //
908+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
917909
if(stricmp(token,"-noborder")==0)
918910
ApplicationIsBorderless=true;
919-
// =================== Community Fix End =================
920911

921912
token = nextParam(NULL, "\" ");
922913
}

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ HINSTANCE ApplicationHInstance = NULL; ///< our application instance
7979
HWND ApplicationHWnd = NULL; ///< our application window handle
8080
Bool ApplicationIsWindowed = false;
8181

82-
// =================== Community Fix Start =================
83-
// Borderless Support - PR #327 //
82+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
8483
Bool ApplicationIsBorderless = false;
85-
// =================== Community Fix End =================
8684

8785
Win32Mouse *TheWin32Mouse= NULL; ///< for the WndProc() only
8886
DWORD TheMessageTime = 0; ///< For getting the time that a message was posted from Windows.
@@ -702,11 +700,9 @@ static Bool initializeAppWindows( HINSTANCE hInstance, Int nCmdShow, Bool runWin
702700
// Create our main window
703701
windowStyle = WS_POPUP|WS_VISIBLE;
704702
if (runWindowed)
705-
// =================== Community Fix Start =================
706-
// Borderless Support - PR #327 //
703+
// TheSuperHackers @feature @ShizCalev 04/04/2025 - Borderless Windowed support
707704
if(!ApplicationIsBorderless)
708705
windowStyle |= WS_DLGFRAME | WS_CAPTION | WS_SYSMENU;
709-
// =================== Community Fix End =================
710706

711707
else
712708
windowStyle |= WS_EX_TOPMOST | WS_SYSMENU;
@@ -938,11 +934,9 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
938934
if (stricmp(token,"-win")==0)
939935
ApplicationIsWindowed=true;
940936

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

947941
token = nextParam(NULL, "\" ");
948942
}

0 commit comments

Comments
 (0)