[Scummvm-git-logs] scummvm master -> 6045ad5e1d2e43c5b0ca25552697a826df6b584f

dreammaster noreply at scummvm.org
Tue Mar 14 06:09:26 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:
6045ad5e1d LURE: Fix compilation when clickable menus are enabled


Commit: 6045ad5e1d2e43c5b0ca25552697a826df6b584f
    https://github.com/scummvm/scummvm/commit/6045ad5e1d2e43c5b0ca25552697a826df6b584f
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-03-13T23:09:15-07:00

Commit Message:
LURE: Fix compilation when clickable menus are enabled

Changed paths:
    engines/lure/menu.cpp


diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp
index 8c96f6171ab..73ce3a2263b 100644
--- a/engines/lure/menu.cpp
+++ b/engines/lure/menu.cpp
@@ -518,6 +518,14 @@ uint16 PopupMenu::Show(int numEntries, const char *actions[]) {
 	int selectedIndex = 0;
 	bool refreshFlag = true;
 
+#ifdef LURE_CLICKABLE_MENUS
+	Common::Rect r;
+	r.left = Surface::textX();
+	r.right = s->width() - Surface::textX() + 1;
+	r.top = Surface::textY();
+	r.bottom = s->height() - Surface::textY() + 1;
+#endif
+
 	bool bailOut = false;
 
 	while (!bailOut) {




More information about the Scummvm-git-logs mailing list