Building 0.8.1 - missing fix

Subforum for discussion and help with ScummVM's PocketPC/HandheldPC port

Moderator: ScummVM Team

Locked
User avatar
Arisme
ScummVM Porter
Posts: 38
Joined: Sun Oct 23, 2005 8:07 am
Location: Paris, France
Contact:

Building 0.8.1 - missing fix

Post by Arisme »

A last minute fix was added to the tarball before release (sorry) be sure to include it if rebuilding

Code: Select all

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 &#40;temp_event.mouse.y <= 20&#41; &#123;
-				// Already tap initiated ?
-				if &#40;_tapTime&#41; &#123;
-					int deltaX; 
-					int deltaY;
-					if &#40;temp_event.mouse.x > _tapX&#41;
-						deltaX = temp_event.mouse.x - _tapX;
-					else
-						deltaX = _tapX - temp_event.mouse.x;
-					if &#40;temp_event.mouse.y > _tapY&#41;
-						deltaY = temp_event.mouse.y - _tapY;
-					else
-						deltaY = _tapY - temp_event.mouse.y;
-					if &#40;deltaX <= 5 && deltaY <= 5 && &#40;GetTickCount&#40;&#41; - _tapTime < 1000&#41;&#41;
-						swap_panel_visibility&#40;&#41;;
-					_tapTime = 0;
+			// Check keyboard tap zone
+			if &#40;!_isSmartphone&#41; &#123;
+				if &#40;temp_event.mouse.y <= 20&#41; &#123;
+					// Already tap initiated ?
+					if &#40;_tapTime&#41; &#123;
+						int deltaX; 
+						int deltaY;
+						if &#40;temp_event.mouse.x > _tapX&#41;
+							deltaX = temp_event.mouse.x - _tapX;
+						else
+							deltaX = _tapX - temp_event.mouse.x;
+						if &#40;temp_event.mouse.y > _tapY&#41;
+							deltaY = temp_event.mouse.y - _tapY;
+						else
+							deltaY = _tapY - temp_event.mouse.y;
+						if &#40;deltaX <= 5 && deltaY <= 5 && &#40;GetTickCount&#40;&#41; - _tapTime < 1000&#41;&#41;
+							swap_panel_visibility&#40;&#41;;
+						_tapTime = 0;
 						
-				&#125;
-				else &#123;
-					_tapTime = GetTickCount&#40;&#41;;
-					_tapX = temp_event.mouse.x;
-					_tapY = temp_event.mouse.y;
-				&#125;
-			&#125;
+					&#125;
+					else &#123;
+						_tapTime = GetTickCount&#40;&#41;;
+						_tapX = temp_event.mouse.x;
+						_tapY = temp_event.mouse.y;
+					&#125;
+				&#125;
+			&#125;
 
 			if &#40;_toolbarHandler.action&#40;temp_event.mouse.x, temp_event.mouse.y, true&#41;&#41; &#123;
 				if &#40;!_toolbarHandler.drawn&#40;&#41;&#41;
Locked