GRAPHICS: MACGUI: add the feature that you can close the window when using the menu

This commit is contained in:
ysj1173886760 2021-04-18 19:09:43 +08:00 committed by Eugene Sandulenko
parent b993ab021d
commit 15d46a55f8

View File

@ -980,6 +980,9 @@ bool MacMenu::processEvent(Common::Event &event) {
return false;
switch (event.type) {
case Common::EVENT_QUIT:
closeMenu();
return false;
case Common::EVENT_KEYDOWN:
return keyEvent(event);
case Common::EVENT_LBUTTONDOWN: