[Scummvm-git-logs] scummvm master -> 08da901e6a0ec8fe9fe2a5faa0548d20c23229d4
dreammaster
noreply at scummvm.org
Sat Jun 25 03:38:08 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:
08da901e6a CHEWY: Fix cursor disappearing using fn keys whilst menu open
Commit: 08da901e6a0ec8fe9fe2a5faa0548d20c23229d4
https://github.com/scummvm/scummvm/commit/08da901e6a0ec8fe9fe2a5faa0548d20c23229d4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2022-06-24T20:37:50-07:00
Commit Message:
CHEWY: Fix cursor disappearing using fn keys whilst menu open
Changed paths:
engines/chewy/dialogs/inventory.cpp
engines/chewy/main.cpp
diff --git a/engines/chewy/dialogs/inventory.cpp b/engines/chewy/dialogs/inventory.cpp
index 4c41f6c441d..a754776bd48 100644
--- a/engines/chewy/dialogs/inventory.cpp
+++ b/engines/chewy/dialogs/inventory.cpp
@@ -280,6 +280,7 @@ void Inventory::menu() {
if (!menuFirstFl) {
_G(cur)->show_cur();
while (_G(in)->getSwitchCode() == Common::KEYCODE_ESCAPE) {
+ SHOULD_QUIT_RETURN;
setupScreen(NO_SETUP);
inv_rand_x = -1;
inv_rand_y = -1;
diff --git a/engines/chewy/main.cpp b/engines/chewy/main.cpp
index eec36498e90..aea1db4202a 100644
--- a/engines/chewy/main.cpp
+++ b/engines/chewy/main.cpp
@@ -210,6 +210,7 @@ bool mainLoop(int16 mode) {
case Common::KEYCODE_F1:
_G(gameState).inv_cur = false;
_G(menu_item) = CUR_WALK;
+ _G(cur)->show_cur();
cursorChoice(_G(menu_item));
if (_G(menu_display) == MENU_DISPLAY)
_G(menu_display) = MENU_HIDE;
@@ -218,6 +219,7 @@ bool mainLoop(int16 mode) {
case Common::KEYCODE_F2:
_G(gameState).inv_cur = false;
_G(menu_item) = CUR_USE;
+ _G(cur)->show_cur();
cursorChoice(_G(menu_item));
if (_G(menu_display) == MENU_DISPLAY)
_G(menu_display) = MENU_HIDE;
@@ -226,6 +228,7 @@ bool mainLoop(int16 mode) {
case Common::KEYCODE_F3:
_G(gameState).inv_cur = false;
_G(menu_item) = CUR_LOOK;
+ _G(cur)->show_cur();
cursorChoice(_G(menu_item));
if (_G(menu_display) == MENU_DISPLAY)
_G(menu_display) = MENU_HIDE;
@@ -234,6 +237,7 @@ bool mainLoop(int16 mode) {
case Common::KEYCODE_F4:
_G(gameState).inv_cur = false;
_G(menu_item) = CUR_TALK;
+ _G(cur)->show_cur();
cursorChoice(_G(menu_item));
if (_G(menu_display) == MENU_DISPLAY)
_G(menu_display) = MENU_HIDE;
More information about the Scummvm-git-logs
mailing list