Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d83b11a

Browse files
committedMay 10, 2025·
[GEN][ZH] Fix left alt freezing game in window mode
1 parent 7d884ad commit d83b11a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎Generals/Code/Main/WinMain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ LRESULT CALLBACK WndProc( HWND hWnd, UINT message,
370370
case SC_SIZE:
371371
case SC_MAXIMIZE:
372372
case SC_KEYMENU:
373+
// TheSuperHackers @bugfix Mauller 10/05/2025 Handle left ALT when in windowed mode to prevent game freezing
374+
if( TRUE == ApplicationIsWindowed )
375+
return 1;
376+
break;
373377
case SC_MONITORPOWER:
374378
if( FALSE == ApplicationIsWindowed )
375379
return 1;

‎GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ LRESULT CALLBACK WndProc( HWND hWnd, UINT message,
373373
case SC_SIZE:
374374
case SC_MAXIMIZE:
375375
case SC_KEYMENU:
376+
// TheSuperHackers @bugfix Mauller 10/05/2025 Handle left ALT when in windowed mode to prevent game freezing
377+
if( TRUE == ApplicationIsWindowed )
378+
return 1;
379+
break;
376380
case SC_MONITORPOWER:
377381
if( FALSE == ApplicationIsWindowed )
378382
return 1;

0 commit comments

Comments
 (0)
Please sign in to comment.