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

whiterandrek whiterandrek at gmail.com
Thu May 21 11:55:57 UTC 2020


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:
fe1dd10b3a PETKA: disabled drawing game object names when cursor is not shown


Commit: fe1dd10b3aa925d63eb535add56c3479087deba5
    https://github.com/scummvm/scummvm/commit/fe1dd10b3aa925d63eb535add56c3479087deba5
Author: Andrei Prykhodko (whiterandrek at gmail.com)
Date: 2020-05-21T14:55:46+03:00

Commit Message:
PETKA: disabled drawing game object names when cursor is not shown

Changed paths:
    engines/petka/interfaces/main.cpp


diff --git a/engines/petka/interfaces/main.cpp b/engines/petka/interfaces/main.cpp
index be18014d15..aac25e3015 100644
--- a/engines/petka/interfaces/main.cpp
+++ b/engines/petka/interfaces/main.cpp
@@ -239,13 +239,15 @@ void InterfaceMain::onMouseMove(const Common::Point p) {
 	QMessageObject *prevObj = (QMessageObject *)_objUnderCursor;
 	_objUnderCursor = nullptr;
 
-	for (int i = _objs.size() - 1; i >= 0; --i) {
-		if (_objs[i]->isInPoint(p.x, p.y)) {
-			_objs[i]->onMouseMove(p.x, p.y);
+	QObjectCursor *cursor = g_vm->getQSystem()->_cursor.get();
+	if (cursor->_isShown) {
+		for (int i = _objs.size() - 1; i >= 0; --i) {
+			if (_objs[i]->isInPoint(p.x, p.y)) {
+				_objs[i]->onMouseMove(p.x, p.y);
+			}
 		}
 	}
 
-	QObjectCursor *cursor = g_vm->getQSystem()->_cursor.get();
 	cursor->_animate = _objUnderCursor != nullptr;
 	cursor->setCursorPos(p.x, p.y, true);
 




More information about the Scummvm-git-logs mailing list