- Timestamp:
- Aug 25, 2009 8:40:15 PM (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
r22412 r22446 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 125 118 if (EngDeviceIoControl(ppdev->hDriver, 126 IOCTL_VIDEO_ SET_POINTER_POSITION,127 &NewPointerPosition,128 sizeof(VIDEO_POINTER_POSITION),119 IOCTL_VIDEO_ENABLE_POINTER, 120 NULL, 121 0, 129 122 NULL, 130 123 0, … … 135 128 // 136 129 137 DISPDBG((1, "DISP vMoveHardwarePointer failed IOCTL_VIDEO_ SET_POINTER_POSITION\n"));130 DISPDBG((1, "DISP vMoveHardwarePointer failed IOCTL_VIDEO_ENABLE_POINTER\n")); 138 131 } 139 132 } -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r22444 r22446 1583 1583 dprintf(("VBoxVideo::VBoxVideoStartIO: IOCTL_VIDEO_ENABLE_POINTER\n")); 1584 1584 // find out whether the host wants absolute positioning 1585 if (vboxQueryHostWantsAbsolute()) 1585 if ( DEV_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension) 1586 && vboxQueryHostWantsAbsolute()) 1586 1587 { 1587 1588 // tell the host to use the guest's pointer … … 1599 1600 #endif /* VBOX_WITH_HGSMI */ 1600 1601 1601 if (!Result) 1602 if (Result) 1603 DEV_SET_MOUSE_SHOWN((PDEVICE_EXTENSION)HwDeviceExtension); 1604 else 1602 1605 dprintf(("VBoxVideo::VBoxVideoStartIO: Could not hide hardware pointer -> fallback\n")); 1606 1603 1607 } else 1604 1608 { … … 1631 1635 #endif /* VBOX_WITH_HGSMI */ 1632 1636 1633 if (!Result) 1637 if (Result) 1638 DEV_SET_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension); 1639 else 1634 1640 dprintf(("VBoxVideo::VBoxVideoStartIO: Could not hide hardware pointer -> fallback\n")); 1635 1641 } else -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r22444 r22446 127 127 ULONG ulMaxFrameBufferSize; /* The size of the VRAM allocated for the a single framebuffer. */ 128 128 129 BOOLEAN fMouseHidden; /* Has the mouse cursor been hidden by the guest? */ 130 129 131 #ifndef VBOX_WITH_HGSMI 130 132 ULONG ulDisplayInformationSize; /* The size of the Display information, which is at offset: … … 162 164 #endif /* VBOX_WITH_HGSMI */ 163 165 } DEVICE_EXTENSION, *PDEVICE_EXTENSION; 166 167 #define DEV_MOUSE_HIDDEN(dev) ((dev)->pPrimary->u.primary.fMouseHidden) 168 #define DEV_SET_MOUSE_HIDDEN(dev) \ 169 do { \ 170 (dev)->pPrimary->u.primary.fMouseHidden = TRUE; \ 171 } while (0) 172 #define DEV_SET_MOUSE_SHOWN(dev) \ 173 do { \ 174 (dev)->pPrimary->u.primary.fMouseHidden = FALSE; \ 175 } while (0) 164 176 165 177 extern "C"
Note:
See TracChangeset
for help on using the changeset viewer.