VirtualBox

Changeset 22465 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 26, 2009 11:49:44 AM (15 years ago)
Author:
vboxsync
Message:

Additions/WINNT: reverted r51445

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  
    116116    else
    117117    {
     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
    118125        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),
    122129                               NULL,
    123130                               0,
     
    128135            //
    129136
    130             DISPDBG((1, "DISP vMoveHardwarePointer failed IOCTL_VIDEO_ENABLE_POINTER\n"));
     137            DISPDBG((1, "DISP vMoveHardwarePointer failed IOCTL_VIDEO_SET_POINTER_POSITION\n"));
    131138        }
    132139    }
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r22448 r22465  
    15841584            dprintf(("VBoxVideo::VBoxVideoStartIO: IOCTL_VIDEO_ENABLE_POINTER\n"));
    15851585            // find out whether the host wants absolute positioning
    1586             if (   DEV_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension)
    1587                 && vboxQueryHostWantsAbsolute())
     1586            if (vboxQueryHostWantsAbsolute())
    15881587            {
    15891588                // tell the host to use the guest's pointer
     
    16011600#endif /* VBOX_WITH_HGSMI */
    16021601
    1603             if (Result)
    1604                     DEV_SET_MOUSE_SHOWN((PDEVICE_EXTENSION)HwDeviceExtension);
    1605                 else
     1602                if (!Result)
    16061603                    dprintf(("VBoxVideo::VBoxVideoStartIO: Could not hide hardware pointer -> fallback\n"));
    1607 
    16081604            } else
    16091605            {
     
    16361632#endif /* VBOX_WITH_HGSMI */
    16371633
    1638                 if (Result)
    1639                     DEV_SET_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension);
    1640                 else
     1634                if (!Result)
    16411635                    dprintf(("VBoxVideo::VBoxVideoStartIO: Could not hide hardware pointer -> fallback\n"));
    16421636            } else
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h

    r22448 r22465  
    126126           ULONG ulMaxFrameBufferSize;         /* The size of the VRAM allocated for the a single framebuffer. */
    127127
    128            BOOLEAN fMouseHidden;               /* Has the mouse cursor been hidden by the guest? */
    129 
    130128#ifndef VBOX_WITH_HGSMI
    131129           ULONG ulDisplayInformationSize;     /* The size of the Display information, which is at offset:
     
    166164#endif /* VBOX_WITH_HGSMI */
    167165} 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)
    178166
    179167extern "C"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette