[Scummvm-git-logs] scummvm master -> 3f74e729ccf8d746fd0ba2adde1a9ba9d8c4a75d

aquadran noreply at scummvm.org
Wed Jul 23 14:54:54 UTC 2025


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

Summary:
3f74e729cc WINTERMUTE: Sync delta with Full and Lite version


Commit: 3f74e729ccf8d746fd0ba2adde1a9ba9d8c4a75d
    https://github.com/scummvm/scummvm/commit/3f74e729ccf8d746fd0ba2adde1a9ba9d8c4a75d
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-07-23T16:54:47+02:00

Commit Message:
WINTERMUTE: Sync delta with Full and Lite version

Changed paths:
    engines/wintermute/ui/ui_button.cpp


diff --git a/engines/wintermute/ui/ui_button.cpp b/engines/wintermute/ui/ui_button.cpp
index b76da114d4f..1a4332c681f 100644
--- a/engines/wintermute/ui/ui_button.cpp
+++ b/engines/wintermute/ui/ui_button.cpp
@@ -36,6 +36,7 @@
 #include "engines/wintermute/base/base_string_table.h"
 #include "engines/wintermute/base/base_sprite.h"
 #include "engines/wintermute/base/base_file_manager.h"
+#include "engines/wintermute/base/base_engine.h"
 #include "engines/wintermute/base/gfx/base_renderer.h"
 #include "engines/wintermute/base/scriptables/script_value.h"
 #include "engines/wintermute/base/scriptables/script.h"
@@ -666,6 +667,9 @@ bool UIButton::display(int offsetX, int offsetY) {
 		press();
 	}
 
+	if (BaseEngine::instance().getTargetExecutable() < WME_LITE) {
+		_press = _hover && _gameRef->_mouseLeftDown && _gameRef->_capturedObject == this;
+	}
 
 	if (_disable) {
 		if (_backDisable) {
@@ -767,7 +771,9 @@ bool UIButton::display(int offsetX, int offsetY) {
 		_imageHover->reset();
 	}
 
-	_press = _hover && _gameRef->_mouseLeftDown && _gameRef->_capturedObject == this;
+	if (BaseEngine::instance().getTargetExecutable() == WME_LITE) {
+		_press = _hover && _gameRef->_mouseLeftDown && _gameRef->_capturedObject == this;
+	}
 
 	return STATUS_OK;
 }




More information about the Scummvm-git-logs mailing list