[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users-jp 00609] Re: xmindpath IR-55 patch



たびたびすみません。ボケてました。

先ほどの patch を apply してから、添付のパッチを apply してください。

# あーはずかし。

-- izawa
diff -Naur xmindpath-patch2/main.c xmindpath/main.c
--- xmindpath-patch2/main.c	Wed Sep 22 02:32:17 1999
+++ xmindpath/main.c	Wed Sep 22 02:34:47 1999
@@ -379,7 +379,7 @@
 	XFlush(display);
 }
 
-/* fake mouse button press */
+/* fake mouse motion */
 static void
 motionmouse(direction, state)
 	int direction;
@@ -400,20 +400,20 @@
 		XTestFakeRelativeMotionEvent (display, -MOVE_DOTS, 0, 0);
 		break;
 	case IR55_CUR_UR:
-		XTestFakeRelativeMotionEvent (display, sqrt(MOVE_DOTS), 
-			-sqrt(MOVE_DOTS), 0);
+		XTestFakeRelativeMotionEvent (display, MOVE_DOTS/sqrt(2), 
+			-(MOVE_DOTS/sqrt(2)), 0);
 		break;
 	case IR55_CUR_DR:
-		XTestFakeRelativeMotionEvent (display, sqrt(MOVE_DOTS),
-			sqrt(MOVE_DOTS), 0);
+		XTestFakeRelativeMotionEvent (display, MOVE_DOTS/sqrt(2),
+			MOVE_DOTS/sqrt(2), 0);
 		break;
 	case IR55_CUR_DL:
-		XTestFakeRelativeMotionEvent (display, -sqrt(MOVE_DOTS),
-			sqrt(MOVE_DOTS), 0);
+		XTestFakeRelativeMotionEvent (display, -(MOVE_DOTS/sqrt(2)),
+			MOVE_DOTS/sqrt(2), 0);
 		break;
 	case IR55_CUR_UL:
-		XTestFakeRelativeMotionEvent (display, -sqrt(MOVE_DOTS),
-			-sqrt(MOVE_DOTS), 0);
+		XTestFakeRelativeMotionEvent (display, -(MOVE_DOTS/sqrt(2)),
+			-(MOVE_DOTS/sqrt(2)), 0);
 		break;
 	case IR55_CUR_UUR:
 		XTestFakeRelativeMotionEvent (display, sin(PI_8)*MOVE_DOTS,