patch-2.3.99-pre3 linux/drivers/usb/mousedev.c

Next file: linux/drivers/usb/pegasus.c
Previous file: linux/drivers/usb/mdc800.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/usb/mousedev.c linux/drivers/usb/mousedev.c
@@ -95,8 +95,8 @@
 						break;
 					case ABS_Y:
 						size = handle->dev->absmax[ABS_Y] - handle->dev->absmin[ABS_Y];
-						list->dy += (value * CONFIG_MOUSEDEV_SCREEN_Y - list->oldy) / size;
-						list->oldy += list->dy * size;
+						list->dy -= (value * CONFIG_MOUSEDEV_SCREEN_Y - list->oldy) / size;
+						list->oldy -= list->dy * size;
 						break;
 				}
 				break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)