[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users-jp 00609] Re: xmindpath IR-55 patch
- To: mgp-users-jp@mew.org
- Subject: [mgp-users-jp 00609] Re: xmindpath IR-55 patch
- From: Yukimitsu Izawa <izawa@jaist.ac.jp>
- Date: Wed, 22 Sep 1999 02:40:40 +0900
- In-reply-to: Your message of "Tue, 21 Sep 1999 23:25:19 +0900" <>
- Posted: Wed, 22 Sep 1999 02:42:32 +0900
- References: <>
- Reply-to: mgp-users-jp@mew.org
たびたびすみません。ボケてました。
先ほどの 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,