1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 14:14:47 +01:00

ignore Alt+Enter with fullscreen=true

This commit is contained in:
FunkyFr3sh 2021-01-09 23:41:35 +01:00
parent c0bdb13f27
commit f8ebc0c820

View File

@ -478,7 +478,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
BOOL context_code = (lParam & (1 << 29)) != 0;
BOOL key_state = (lParam & (1 << 30)) != 0;
if (wParam == VK_RETURN && context_code && !key_state)
if (wParam == VK_RETURN && !g_ddraw->fullscreen && context_code && !key_state)
{
util_toggle_fullscreen();
return 0;