[Scummvm-git-logs] scummvm master -> 0a665007d58e70718181507e43e2081ffec61865

AndywinXp noreply at scummvm.org
Thu Jan 19 18:37:47 UTC 2023


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:
0a665007d5 JANITORIAL: SCUMM: Fix spelling error


Commit: 0a665007d58e70718181507e43e2081ffec61865
    https://github.com/scummvm/scummvm/commit/0a665007d58e70718181507e43e2081ffec61865
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-01-19T19:37:38+01:00

Commit Message:
JANITORIAL: SCUMM: Fix spelling error

Changed paths:
    engines/scumm/input.cpp
    engines/scumm/scumm.h


diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index 6dab8310fd4..2d1167fa7bc 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -549,7 +549,7 @@ void ScummEngine_v7::processKeyboard(Common::KeyState lastKeyHit) {
 #endif
 
 
-void ScummEngine::waitForBannerInput(int32 waitTime, Common::KeyState &ks, bool &leftBtnClicked, bool &rightBtnClicked, bool handeleMouseWheel) {
+void ScummEngine::waitForBannerInput(int32 waitTime, Common::KeyState &ks, bool &leftBtnClicked, bool &rightBtnClicked, bool handleMouseWheel) {
 	bool validKey = false;
 
 	if (waitTime && waitTime != -1) {
@@ -571,7 +571,7 @@ void ScummEngine::waitForBannerInput(int32 waitTime, Common::KeyState &ks, bool
 					   ks.keycode != Common::KEYCODE_RALT    &&
 					   !(ks.keycode == Common::KEYCODE_s && ks.hasFlags(Common::KBD_ALT));
 
-			if (validKey || leftBtnClicked || rightBtnClicked || (handeleMouseWheel && _mouseWheelFlag))
+			if (validKey || leftBtnClicked || rightBtnClicked || (handleMouseWheel && _mouseWheelFlag))
 				return;
 
 			if (shouldQuit())
@@ -586,7 +586,7 @@ void ScummEngine::waitForBannerInput(int32 waitTime, Common::KeyState &ks, bool
 			}
 		}
 	} else {
-		while (!validKey && !leftBtnClicked && !rightBtnClicked && !(handeleMouseWheel && _mouseWheelFlag)) {
+		while (!validKey && !leftBtnClicked && !rightBtnClicked && !(handleMouseWheel && _mouseWheelFlag)) {
 			waitForTimer(1); // Allow the engine to update the screen and fetch new inputs...
 
 			if (_game.version > 2 && _game.version < 7 && (_guiCursorAnimCounter++ & 16)) {
diff --git a/engines/scumm/scumm.h b/engines/scumm/scumm.h
index 79621b0340e..7abafbe822c 100644
--- a/engines/scumm/scumm.h
+++ b/engines/scumm/scumm.h
@@ -725,7 +725,7 @@ protected:
 	virtual void queryQuit(bool returnToLauncher);
 	virtual void queryRestart();
 	virtual const char *getGUIString(int stringId);
-	void waitForBannerInput(int32 waitTime, Common::KeyState &ks, bool &leftBtnClicked, bool &rightBtnClicked, bool handeleMouseWheel = false);
+	void waitForBannerInput(int32 waitTime, Common::KeyState &ks, bool &leftBtnClicked, bool &rightBtnClicked, bool handleMouseWheel = false);
 	virtual int getGUIStringHeight(const char *str);
 	virtual int getGUIStringWidth(const char *str);
 	virtual void drawGUIText(const char *buttonString, Common::Rect *clipRect, int textXPos, int textYPos, int textColor, bool centerFlag);




More information about the Scummvm-git-logs mailing list