Win32: only allow escape-menu in directdraw

This commit is contained in:
OV2 2011-11-30 19:31:27 +01:00
parent 6b17c7d3bd
commit e68a1e9786
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ int HandleKeyMessage(WPARAM wParam, LPARAM lParam)
switch (wParam)
{
case VK_ESCAPE:
if(GUI.outputMethod==DIRECT3D && GUI.FullScreen && !GUI.EmulateFullscreen)
if(GUI.outputMethod!=DIRECTDRAW && GUI.FullScreen && !GUI.EmulateFullscreen)
ToggleFullScreen();
else
if (GetMenu (GUI.hWnd) == NULL)