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

Re: Old mouse-positioning bug in newest pmax snapshot



Just made a diff that should solve the
problem. It just changes y to x in the
mouse-positioning routine.

As I don't have the complete source-tree,
I can't give the absolute path of the file 
ims332.c that has to be patched:



--- ims332.c	Sun May 18 00:19:00 1997
+++ ims332.c	Sun May 18 00:31:38 1997
@@ -298,14 +298,14 @@
 	struct fbinfo *fi;
 	int x, y;
 {
-	if (y < 0)
-	  y = 0;
-	else if (y > fi -> fi_type.fb_width - fi -> fi_cursor.width - 1)
-	  y = fi -> fi_type.fb_width - fi -> fi_cursor.width - 1;
 	if (x < 0)
 	  x = 0;
-	else if (x > fi -> fi_type.fb_height - fi -> fi_cursor.height - 1)
-	  x = fi -> fi_type.fb_height - fi -> fi_cursor.height - 1;
+	else if (x > fi -> fi_type.fb_width - fi -> fi_cursor.width - 1)
+	  x = fi -> fi_type.fb_width - fi -> fi_cursor.width - 1;
+	if (y < 0)
+	  y = 0;
+	else if (y > fi -> fi_type.fb_height - fi -> fi_cursor.height - 1)
+	  y = fi -> fi_type.fb_height - fi -> fi_cursor.height - 1;
 
 	fi -> fi_cursor.x = x;
 	fi -> fi_cursor.y = y;



I think this patch is only needed for DS 5000/xx machines.

Jan.

------------------------------------
Jan Mueller
INET: jan_(_dot_)_mueller_(_at_)_tu-harburg_(_dot_)_d400_(_dot_)_de