[Scummvm-cvs-logs] CVS: scummvm/gui widget.cpp,1.33,1.34

Nicolas Bacca arisme at users.sourceforge.net
Sun Jan 18 05:51:00 CET 2004


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv28136

Modified Files:
	widget.cpp 
Log Message:
Small tweak for the checkbox control on CE

Index: widget.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/widget.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- widget.cpp	6 Jan 2004 12:45:29 -0000	1.33
+++ widget.cpp	18 Jan 2004 13:50:50 -0000	1.34
@@ -167,7 +167,11 @@
 }
 
 void CheckboxWidget::handleMouseUp(int x, int y, int button, int clickCount) {
+#ifndef _WIN32_WCE
 	if (isEnabled() && x >= 0 && x < _w && y >= 0 && y < _h) {
+#else
+	if (isEnabled() && x >= 0 && x < 14 && y >= 0 && y < 14) {
+#endif
 		toggleState();
 	}
 }





More information about the Scummvm-git-logs mailing list