diff options
author | Feng Tian <feng.tian@intel.com> | 2016-05-11 10:44:42 +0800 |
---|---|---|
committer | Feng Tian <feng.tian@intel.com> | 2016-05-12 10:01:22 +0800 |
commit | 5ea437716da796a9bd74b6e75962c5a1ffcac978 (patch) | |
tree | 19f8aaee8b1f731c60bfbe3ba980aaead9ff0613 | |
parent | 89446d8967361aa6e2eab2b7413d58771591cc32 (diff) | |
download | edk2-5ea437716da796a9bd74b6e75962c5a1ffcac978.tar.gz edk2-5ea437716da796a9bd74b6e75962c5a1ffcac978.tar.bz2 edk2-5ea437716da796a9bd74b6e75962c5a1ffcac978.zip |
MdeModulePkg/UsbMouseAbsolutePointerDxe: fix VS2015 NOOPT build error
Cc: Shumin Qiu <shumin.qiu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c index bf3d853807..9fe92441b8 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c @@ -678,9 +678,9 @@ InitializeUsbMouseDevice ( // Let the cursor's starting position is in the center of the screen.
//
UsbMouseAbsolutePointerDev->State.CurrentX =
- (UsbMouseAbsolutePointerDev->Mode.AbsoluteMaxX + UsbMouseAbsolutePointerDev->Mode.AbsoluteMinX) / 2;
+ DivU64x32 (UsbMouseAbsolutePointerDev->Mode.AbsoluteMaxX + UsbMouseAbsolutePointerDev->Mode.AbsoluteMinX, 2);
UsbMouseAbsolutePointerDev->State.CurrentY =
- (UsbMouseAbsolutePointerDev->Mode.AbsoluteMaxY + UsbMouseAbsolutePointerDev->Mode.AbsoluteMinY) / 2;
+ DivU64x32 (UsbMouseAbsolutePointerDev->Mode.AbsoluteMaxY + UsbMouseAbsolutePointerDev->Mode.AbsoluteMinY, 2);
//
// Set boot protocol for the USB mouse.
@@ -942,9 +942,9 @@ UsbMouseAbsolutePointerReset ( // Let the cursor's starting position is in the center of the screen.
//
UsbMouseAbsolutePointerDevice->State.CurrentX =
- (UsbMouseAbsolutePointerDevice->Mode.AbsoluteMaxX + UsbMouseAbsolutePointerDevice->Mode.AbsoluteMinX) / 2;
+ DivU64x32 (UsbMouseAbsolutePointerDevice->Mode.AbsoluteMaxX + UsbMouseAbsolutePointerDevice->Mode.AbsoluteMinX, 2);
UsbMouseAbsolutePointerDevice->State.CurrentY =
- (UsbMouseAbsolutePointerDevice->Mode.AbsoluteMaxY + UsbMouseAbsolutePointerDevice->Mode.AbsoluteMinY) / 2;
+ DivU64x32 (UsbMouseAbsolutePointerDevice->Mode.AbsoluteMaxY + UsbMouseAbsolutePointerDevice->Mode.AbsoluteMinY, 2);
UsbMouseAbsolutePointerDevice->StateChanged = FALSE;
|