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