[Scummvm-git-logs] scummvm master -> c0fbc05b2af41c7c6490b3ad034e8b4971c4a8a7

bluegr noreply at scummvm.org
Sun Jun 12 11:25:16 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c0fbc05b2a CHEWY: Hide cursor when showing the action menu - bug #13518


Commit: c0fbc05b2af41c7c6490b3ad034e8b4971c4a8a7
    https://github.com/scummvm/scummvm/commit/c0fbc05b2af41c7c6490b3ad034e8b4971c4a8a7
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2022-06-12T14:25:00+03:00

Commit Message:
CHEWY: Hide cursor when showing the action menu - bug #13518

Changed paths:
    engines/chewy/main.cpp


diff --git a/engines/chewy/main.cpp b/engines/chewy/main.cpp
index 22d759253ba..fa43ccd8274 100644
--- a/engines/chewy/main.cpp
+++ b/engines/chewy/main.cpp
@@ -246,6 +246,7 @@ bool mainLoop(int16 mode) {
 			_G(maus_old_y) = g_events->_mousePos.y;
 			_G(menu_item) = CUR_USE;
 			menuEntry();
+			_G(cur)->show_cur();
 			Dialogs::Inventory::menu();
 			menuExit();
 			_G(menu_flag) = MENU_HIDE;
@@ -288,6 +289,7 @@ bool mainLoop(int16 mode) {
 		case Common::KEYCODE_ESCAPE:
 			if (_G(menu_display) == 0) {
 				menuEntry();
+				_G(cur)->hide_cur();
 				_G(tmp_menu_item) = _G(menu_item);
 				_G(maus_old_x) = g_events->_mousePos.x;
 				_G(maus_old_y) = g_events->_mousePos.y;
@@ -296,6 +298,7 @@ bool mainLoop(int16 mode) {
 				_G(cur)->move((MOUSE_MENU_MAX_X / 5) * (_G(menu_item)), 100);
 			} else {
 				menuExit();
+				_G(cur)->show_cur();
 				_G(menu_item) = _G(tmp_menu_item);
 				_G(menu_display) = MENU_HIDE;
 				if (_G(gameState).inv_cur && _G(gameState).AkInvent != -1 && _G(menu_item) == CUR_USE) {
@@ -311,6 +314,7 @@ bool mainLoop(int16 mode) {
 
 				_G(menu_item) = CUR_USE;
 				menuEntry();
+				_G(cur)->show_cur();
 				Dialogs::Inventory::menu();
 				menuExit();
 				_G(menu_flag) = MENU_HIDE;




More information about the Scummvm-git-logs mailing list