[Scummvm-cvs-logs] SF.net SVN: scummvm:[55121] scummvm/trunk/engines/hugo
sev at users.sourceforge.net
sev at users.sourceforge.net
Tue Jan 4 22:45:09 CET 2011
Revision: 55121
http://scummvm.svn.sourceforge.net/scummvm/?rev=55121&view=rev
Author: sev
Date: 2011-01-04 21:45:09 +0000 (Tue, 04 Jan 2011)
Log Message:
-----------
HUGO: Proper implementation for menu closing when clicked outside of it
Modified Paths:
--------------
scummvm/trunk/engines/hugo/menu.cpp
scummvm/trunk/engines/hugo/menu.h
Modified: scummvm/trunk/engines/hugo/menu.cpp
===================================================================
--- scummvm/trunk/engines/hugo/menu.cpp 2011-01-04 20:39:27 UTC (rev 55120)
+++ scummvm/trunk/engines/hugo/menu.cpp 2011-01-04 21:45:09 UTC (rev 55121)
@@ -222,9 +222,11 @@
}
}
-//void TopMenu::handleMouseUp(int x, int y, int button, int clickCount) {
-// if (y > _h)
-// close();
-//}
+void TopMenu::handleMouseUp(int x, int y, int button, int clickCount) {
+ if (y > _h)
+ close();
+ else
+ Dialog::handleMouseUp(x, y, button, clickCount);
+}
} // End of namespace Hugo
Modified: scummvm/trunk/engines/hugo/menu.h
===================================================================
--- scummvm/trunk/engines/hugo/menu.h 2011-01-04 20:39:27 UTC (rev 55120)
+++ scummvm/trunk/engines/hugo/menu.h 2011-01-04 21:45:09 UTC (rev 55121)
@@ -48,7 +48,7 @@
void reflowLayout();
void handleCommand(GUI::CommandSender *sender, uint32 command, uint32 data);
-// void handleMouseUp(int x, int y, int button, int clickCount);
+ void handleMouseUp(int x, int y, int button, int clickCount);
void loadBmpArr(Common::File &in);
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