[Scummvm-cvs-logs] CVS: scummvm/backends/wince wince-sdl.cpp,1.32.2.3,1.32.2.4

Nicolas Bacca arisme at users.sourceforge.net
Sun Jan 29 15:09:02 CET 2006


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

Modified Files:
      Tag: branch-0-8-0
	wince-sdl.cpp 
Log Message:
Last minute bug fix for Smartphone double click crash

Index: wince-sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/wince-sdl.cpp,v
retrieving revision 1.32.2.3
retrieving revision 1.32.2.4
diff -u -d -r1.32.2.3 -r1.32.2.4
--- wince-sdl.cpp	27 Jan 2006 12:33:05 -0000	1.32.2.3
+++ wince-sdl.cpp	29 Jan 2006 23:08:09 -0000	1.32.2.4
@@ -1966,31 +1966,33 @@
 
 			fillMouseEvent(temp_event, ev.button.x, ev.button.y);
 
-			// Check keyboard tap zone
-			if (temp_event.mouse.y <= 20) {
-				// Already tap initiated ?
-				if (_tapTime) {
-					int deltaX; 
-					int deltaY;
-					if (temp_event.mouse.x > _tapX)
-						deltaX = temp_event.mouse.x - _tapX;
-					else
-						deltaX = _tapX - temp_event.mouse.x;
-					if (temp_event.mouse.y > _tapY)
-						deltaY = temp_event.mouse.y - _tapY;
-					else
-						deltaY = _tapY - temp_event.mouse.y;
-					if (deltaX <= 5 && deltaY <= 5 && (GetTickCount() - _tapTime < 1000))
-						swap_panel_visibility();
-					_tapTime = 0;
+			// Check keyboard tap zone
+			if (!_isSmartphone) {
+				if (temp_event.mouse.y <= 20) {
+					// Already tap initiated ?
+					if (_tapTime) {
+						int deltaX; 
+						int deltaY;
+						if (temp_event.mouse.x > _tapX)
+							deltaX = temp_event.mouse.x - _tapX;
+						else
+							deltaX = _tapX - temp_event.mouse.x;
+						if (temp_event.mouse.y > _tapY)
+							deltaY = temp_event.mouse.y - _tapY;
+						else
+							deltaY = _tapY - temp_event.mouse.y;
+						if (deltaX <= 5 && deltaY <= 5 && (GetTickCount() - _tapTime < 1000))
+							swap_panel_visibility();
+						_tapTime = 0;
 						
-				}
-				else {
-					_tapTime = GetTickCount();
-					_tapX = temp_event.mouse.x;
-					_tapY = temp_event.mouse.y;
-				}
-			}
+					}
+					else {
+						_tapTime = GetTickCount();
+						_tapX = temp_event.mouse.x;
+						_tapY = temp_event.mouse.y;
+					}
+				}
+			}
 
 			if (_toolbarHandler.action(temp_event.mouse.x, temp_event.mouse.y, true)) {
 				if (!_toolbarHandler.drawn())





More information about the Scummvm-git-logs mailing list