[Scummvm-cvs-logs] SF.net SVN: scummvm: [27480] scummvm/trunk/engines/saga/interface.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Jun 16 21:11:56 CEST 2007


Revision: 27480
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27480&view=rev
Author:   thebluegr
Date:     2007-06-16 12:11:55 -0700 (Sat, 16 Jun 2007)

Log Message:
-----------
Options button is now working in the character selection screen in IHNM

Modified Paths:
--------------
    scummvm/trunk/engines/saga/interface.cpp

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2007-06-16 19:07:20 UTC (rev 27479)
+++ scummvm/trunk/engines/saga/interface.cpp	2007-06-16 19:11:55 UTC (rev 27480)
@@ -1627,12 +1627,21 @@
 		break;
 
 	case kPanelChapterSelection:
-		// TODO: panel has silent button
 		if (updateFlag & UPDATE_MOUSEMOVE) {
 			handleChapterSelectionUpdate(mousePoint);
 		} else {
-			if (updateFlag & UPDATE_MOUSECLICK)
-				handleChapterSelectionClick(mousePoint);
+			if (updateFlag & UPDATE_MOUSECLICK) {
+				Rect rect;
+				rect.left = _vm->getDisplayInfo().saveReminderXOffset;
+				rect.top = _vm->getDisplayInfo().saveReminderYOffset;
+
+				rect.right = rect.left + _vm->getDisplayInfo().saveReminderWidth;
+				rect.bottom = rect.top + _vm->getDisplayInfo().saveReminderHeight;
+				if (rect.contains(mousePoint))
+					setMode(kPanelOption);
+				else
+					handleChapterSelectionClick(mousePoint);
+			}
 		}
 		break;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list