[Scummvm-cvs-logs] CVS: scummvm/backends/wince/CEgui Panel.cpp,1.4,1.5

Nicolas Bacca arisme at users.sourceforge.net
Tue Feb 24 13:42:06 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/wince/CEgui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26816

Modified Files:
	Panel.cpp 
Log Message:
Fix hide toolbar

Index: Panel.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEgui/Panel.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Panel.cpp	5 Feb 2004 00:19:53 -0000	1.4
+++ Panel.cpp	24 Feb 2004 21:27:02 -0000	1.5
@@ -64,7 +64,7 @@
 	bool Panel::action(int x, int y, bool pushed) {
 		ItemMap::const_iterator iterator;
 		bool result = false;
-		if (!checkInside(x, y))
+		if (!_visible || !checkInside(x, y))
 			return false;
 
 		for (iterator = _itemsMap.begin(); !result && iterator != _itemsMap.end(); ++iterator) 
@@ -79,4 +79,4 @@
 	Panel::~Panel() {
 		_itemsMap.clear();
 	}
-}
\ No newline at end of file
+}





More information about the Scummvm-git-logs mailing list