Changeset 22465 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 26, 2009 11:49:44 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/pointer.c
r22446 r22465 116 116 else 117 117 { 118 NewPointerPosition.Column = (SHORT) x - (SHORT) (ppdev->ptlHotSpot.x); 119 NewPointerPosition.Row = (SHORT) y - (SHORT) (ppdev->ptlHotSpot.y); 120 121 // 122 // Call miniport driver to move Pointer. 123 // 124 118 125 if (EngDeviceIoControl(ppdev->hDriver, 119 IOCTL_VIDEO_ ENABLE_POINTER,120 NULL,121 0,126 IOCTL_VIDEO_SET_POINTER_POSITION, 127 &NewPointerPosition, 128 sizeof(VIDEO_POINTER_POSITION), 122 129 NULL, 123 130 0, … … 128 135 // 129 136 130 DISPDBG((1, "DISP vMoveHardwarePointer failed IOCTL_VIDEO_ ENABLE_POINTER\n"));137 DISPDBG((1, "DISP vMoveHardwarePointer failed IOCTL_VIDEO_SET_POINTER_POSITION\n")); 131 138 } 132 139 } -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r22448 r22465 1584 1584 dprintf(("VBoxVideo::VBoxVideoStartIO: IOCTL_VIDEO_ENABLE_POINTER\n")); 1585 1585 // find out whether the host wants absolute positioning 1586 if ( DEV_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension) 1587 && vboxQueryHostWantsAbsolute()) 1586 if (vboxQueryHostWantsAbsolute()) 1588 1587 { 1589 1588 // tell the host to use the guest's pointer … … 1601 1600 #endif /* VBOX_WITH_HGSMI */ 1602 1601 1603 if (Result) 1604 DEV_SET_MOUSE_SHOWN((PDEVICE_EXTENSION)HwDeviceExtension); 1605 else 1602 if (!Result) 1606 1603 dprintf(("VBoxVideo::VBoxVideoStartIO: Could not hide hardware pointer -> fallback\n")); 1607 1608 1604 } else 1609 1605 { … … 1636 1632 #endif /* VBOX_WITH_HGSMI */ 1637 1633 1638 if (Result) 1639 DEV_SET_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension); 1640 else 1634 if (!Result) 1641 1635 dprintf(("VBoxVideo::VBoxVideoStartIO: Could not hide hardware pointer -> fallback\n")); 1642 1636 } else -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r22448 r22465 126 126 ULONG ulMaxFrameBufferSize; /* The size of the VRAM allocated for the a single framebuffer. */ 127 127 128 BOOLEAN fMouseHidden; /* Has the mouse cursor been hidden by the guest? */129 130 128 #ifndef VBOX_WITH_HGSMI 131 129 ULONG ulDisplayInformationSize; /* The size of the Display information, which is at offset: … … 166 164 #endif /* VBOX_WITH_HGSMI */ 167 165 } DEVICE_EXTENSION, *PDEVICE_EXTENSION; 168 169 #define DEV_MOUSE_HIDDEN(dev) ((dev)->pPrimary->u.primary.fMouseHidden)170 #define DEV_SET_MOUSE_HIDDEN(dev) \171 do { \172 (dev)->pPrimary->u.primary.fMouseHidden = TRUE; \173 } while (0)174 #define DEV_SET_MOUSE_SHOWN(dev) \175 do { \176 (dev)->pPrimary->u.primary.fMouseHidden = FALSE; \177 } while (0)178 166 179 167 extern "C"
Note:
See TracChangeset
for help on using the changeset viewer.