[Scummvm-git-logs] scummvm master -> 59bc70299ec8f654686a69bac15440d81c4ad182

sev- sev at scummvm.org
Thu Aug 24 08:45:25 CEST 2017


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:
59bc70299e WAGE: Fake input text when using shortcuts


Commit: 59bc70299ec8f654686a69bac15440d81c4ad182
    https://github.com/scummvm/scummvm/commit/59bc70299ec8f654686a69bac15440d81c4ad182
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-08-24T08:45:26+02:00

Commit Message:
WAGE: Fake input text when using shortcuts

Changed paths:
    engines/wage/gui.cpp


diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index ffc4e41..7d1014b 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -278,10 +278,17 @@ void Gui::executeMenuCommand(int action, Common::String &text) {
 		actionClear();
 		break;
 
-	case kMenuActionCommand:
-		_engine->processTurn(&text, NULL);
-		break;
+	case kMenuActionCommand: {
+			_engine->_inputText = text;
+			Common::String inp = text + '\n';
+
+			appendText(inp.c_str());
 
+			_consoleWindow->clearInput();
+
+			_engine->processTurn(&text, NULL);
+			break;
+		}
 	default:
 		warning("Unknown action: %d", action);
 





More information about the Scummvm-git-logs mailing list