VirtualBox

Changeset 22270 in vbox


Ignore:
Timestamp:
Aug 14, 2009 8:28:17 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51110
Message:

Devices/VMMDev: reverted r51107 in order to split it into two changesets

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r22268 r22270  
    707707                                                       NULL);
    708708                }
    709                 pThis->fHostCursorRequested = fVisible;
    710709                pRequestHeader->rc = VINF_SUCCESS;
    711710            }
     
    20862085
    20872086
    2088 #define VMMDEV_SSM_VERSION  10
     2087#define VMMDEV_SSM_VERSION  9
    20892088
    20902089/**
     
    21212120#endif /* VBOX_WITH_HGCM */
    21222121
    2123     SSMR3PutU32(pSSMHandle, pThis->fHostCursorRequested);
    2124 
    21252122    return VINF_SUCCESS;
    21262123}
     
    21692166        SSMR3GetU32(pSSMHandle, &temp);
    21702167    }
     2168
    21712169#ifdef VBOX_WITH_HGCM
    21722170    vmmdevHGCMLoadState (pThis, pSSMHandle, u32Version);
    21732171#endif /* VBOX_WITH_HGCM */
    2174 
    2175     if (   SSM_VERSION_MAJOR(u32Version) ==  0
    2176         && SSM_VERSION_MINOR(u32Version) >= 10)
    2177         SSMR3GetU32(pSSMHandle, &pThis->fHostCursorRequested);
    21782172
    21792173    /*
     
    21832177    Log(("vmmdevLoadState: capabilities changed (%x), informing connector\n", pThis->mouseCapabilities));
    21842178    if (pThis->pDrv)
    2185     {
    21862179        pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities);
    2187         if (   SSM_VERSION_MAJOR(u32Version) ==  0
    2188             && SSM_VERSION_MINOR(u32Version) >= 10)
    2189                 pThis->pDrv->pfnUpdatePointerShape(pThis->pDrv,
    2190                                                    pThis->fHostCursorRequested,
    2191                                                    0,
    2192                                                    0, 0,
    2193                                                    0, 0,
    2194                                                    NULL);
    2195     }
    21962180
    21972181    /* Reestablish the acceleration status. */
     
    24802464
    24812465    /*
    2482      * Reset the mouse integration feature bits
     2466     * Reset the mouse integration feature bit
    24832467     */
    2484     if (pThis->mouseCapabilities & VMMDEV_MOUSE_GUEST_MASK)
    2485     {
    2486         pThis->mouseCapabilities &= ~VMMDEV_MOUSE_GUEST_MASK;
     2468    if (pThis->mouseCapabilities & (VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE|VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR))
     2469    {
     2470        pThis->mouseCapabilities &= ~VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE;
    24872471        /* notify the connector */
    24882472        Log(("vmmdevReset: capabilities changed (%x), informing connector\n", pThis->mouseCapabilities));
    24892473        pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities);
    24902474    }
    2491     pThis->fHostCursorRequested = false;
    24922475
    24932476    pThis->hypervisorSize = 0;
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r22268 r22270  
    3838    uint32_t hypervisorSize;
    3939
    40     /** mouse capabilities of host and guest */
     40    /** bit 0: guest capability (1 == wants), bit 1: flag value has changed */
     41    /** bit 2: host capability (1 == wants), bit 3: flag value has changed */
    4142    uint32_t mouseCapabilities;
    4243    /** absolute mouse position in pixels */
    4344    uint32_t mouseXAbs;
    4445    uint32_t mouseYAbs;
    45     /** Does the guest currently want the host pointer to be shown? */
    46     uint32_t fHostCursorRequested;
    4746
    4847    /** Pointer to device instance. */
Note: See TracChangeset for help on using the changeset viewer.

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