aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-12 20:10:31 +0200
committerEugene Sandulenko2019-09-03 17:17:33 +0200
commit8198a5d99e778c37c9c185e79629b072151e36d2 (patch)
treeee06f98356e89e20d09f00747414a2d82d33aa38
parentbccb8178120c383710ca9f05a6a77e1e48689473 (diff)
downloadscummvm-rg350-8198a5d99e778c37c9c185e79629b072151e36d2.tar.gz
scummvm-rg350-8198a5d99e778c37c9c185e79629b072151e36d2.tar.bz2
scummvm-rg350-8198a5d99e778c37c9c185e79629b072151e36d2.zip
HDB: Fix crash in start menu in PPC version
-rw-r--r--engines/hdb/input.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp
index 15ba7fcf4e..0a3cfb2d23 100644
--- a/engines/hdb/input.cpp
+++ b/engines/hdb/input.cpp
@@ -455,6 +455,10 @@ void Input::updateMouseButtons(int l, int m, int r) {
// Check if LButton has been pressed
// Check if LButton has been lifted
if (_mouseLButton) {
+ if (g_hdb->isPPC()) {
+ stylusDown(_mouseX, _mouseY);
+ return;
+ }
if (_mouseX > (g_hdb->_screenWidth - 32 * 5) && _mouseY < 240) {
g_hdb->_window->checkInvSelect(_mouseX, _mouseY);
} else if (_mouseX > (g_hdb->_screenWidth - 32 * 5) && _mouseY >= 240) {