1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +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 context_code = (lParam & (1 << 29)) != 0;
BOOL key_state = (lParam & (1 << 30)) != 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(); util_toggle_fullscreen();
return 0; return 0;