From 0e1f1afeae1d94e8b515df72e30ff000dc5c94f9 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sun, 26 Jan 2014 14:58:22 +0000 Subject: [PATCH] Fixed labels in usbhid, no semantic changes. git-svn-id: svn://kolibrios.org@4530 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/drivers/usbhid/mouse.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/drivers/usbhid/mouse.inc b/kernel/trunk/drivers/usbhid/mouse.inc index 2e43993e64..21101011a7 100644 --- a/kernel/trunk/drivers/usbhid/mouse.inc +++ b/kernel/trunk/drivers/usbhid/mouse.inc @@ -118,7 +118,7 @@ end if ; 3. This is x moving. For relative fields, store the value in the state. ; Pass absolute field to the default handler. test byte [esi+report_field_group.flags], HID_FIELD_RELATIVE - jz .relative_x + jz .absolute_x mov [edi+mouse_device_data.dx], edx ret .y: @@ -128,7 +128,7 @@ end if ; increasing from top to bottom. ; Pass absolute fields to the default handler. test byte [esi+report_field_group.flags], HID_FIELD_RELATIVE - jz .relative_y + jz .absolute_y neg edx mov [edi+mouse_device_data.dy], edx ret @@ -145,7 +145,7 @@ end if jz .unclaimed mov [edi+mouse_device_data.hwheel], edx ret -.relative_x: +.absolute_x: push ebx mov eax, [screen_x] mul edx @@ -155,7 +155,7 @@ end if or [edi+mouse_device_data.buttons], 0x80000000 pop ebx ret -.relative_y: +.absolute_y: push ebx mov eax, [screen_y] mul edx