Changeset 22268 in vbox
- Timestamp:
- Aug 14, 2009 5:03:36 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51107
- Location:
- trunk/src/VBox/Devices/VMMDev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r22096 r22268 707 707 NULL); 708 708 } 709 pThis->fHostCursorRequested = fVisible; 709 710 pRequestHeader->rc = VINF_SUCCESS; 710 711 } … … 2085 2086 2086 2087 2087 #define VMMDEV_SSM_VERSION 92088 #define VMMDEV_SSM_VERSION 10 2088 2089 2089 2090 /** … … 2120 2121 #endif /* VBOX_WITH_HGCM */ 2121 2122 2123 SSMR3PutU32(pSSMHandle, pThis->fHostCursorRequested); 2124 2122 2125 return VINF_SUCCESS; 2123 2126 } … … 2166 2169 SSMR3GetU32(pSSMHandle, &temp); 2167 2170 } 2168 2169 2171 #ifdef VBOX_WITH_HGCM 2170 2172 vmmdevHGCMLoadState (pThis, pSSMHandle, u32Version); 2171 2173 #endif /* VBOX_WITH_HGCM */ 2174 2175 if ( SSM_VERSION_MAJOR(u32Version) == 0 2176 && SSM_VERSION_MINOR(u32Version) >= 10) 2177 SSMR3GetU32(pSSMHandle, &pThis->fHostCursorRequested); 2172 2178 2173 2179 /* … … 2177 2183 Log(("vmmdevLoadState: capabilities changed (%x), informing connector\n", pThis->mouseCapabilities)); 2178 2184 if (pThis->pDrv) 2185 { 2179 2186 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 } 2180 2196 2181 2197 /* Reestablish the acceleration status. */ … … 2464 2480 2465 2481 /* 2466 * Reset the mouse integration feature bit 2482 * Reset the mouse integration feature bits 2467 2483 */ 2468 if (pThis->mouseCapabilities & (VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE|VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR))2469 { 2470 pThis->mouseCapabilities &= ~VMMDEV_MOUSE_GUEST_ CAN_ABSOLUTE;2484 if (pThis->mouseCapabilities & VMMDEV_MOUSE_GUEST_MASK) 2485 { 2486 pThis->mouseCapabilities &= ~VMMDEV_MOUSE_GUEST_MASK; 2471 2487 /* notify the connector */ 2472 2488 Log(("vmmdevReset: capabilities changed (%x), informing connector\n", pThis->mouseCapabilities)); 2473 2489 pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities); 2474 2490 } 2491 pThis->fHostCursorRequested = false; 2475 2492 2476 2493 pThis->hypervisorSize = 0; -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r21227 r22268 38 38 uint32_t hypervisorSize; 39 39 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 */ 40 /** mouse capabilities of host and guest */ 42 41 uint32_t mouseCapabilities; 43 42 /** absolute mouse position in pixels */ 44 43 uint32_t mouseXAbs; 45 44 uint32_t mouseYAbs; 45 /** Does the guest currently want the host pointer to be shown? */ 46 uint32_t fHostCursorRequested; 46 47 47 48 /** Pointer to device instance. */
Note:
See TracChangeset
for help on using the changeset viewer.