Changeset 6469 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
- Timestamp:
- Jan 24, 2008 6:44:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
r6458 r6469 46 46 vmmdevInitRequest(&vmmreqGuestCaps.header, VMMDevReq_ReportGuestCapabilities); 47 47 vmmreqGuestCaps.caps = fState ? VMMDEV_GUEST_SUPPORTS_SEAMLESS : 0; 48 rc = vbglR3GRPerform(&vmmreqGuestCaps.header);48 rc = VbglR3GRPerform(&vmmreqGuestCaps.header); 49 49 #ifdef DEBUG 50 50 if (RT_SUCCESS(rc)) … … 71 71 waitEvent.u32TimeoutIn = 0; 72 72 waitEvent.u32EventMaskIn = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; 73 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent));73 rc = VbglR3DoIOCtl(VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent)); 74 74 if (RT_SUCCESS(rc)) 75 75 { … … 82 82 vmmdevInitRequest(&seamlessChangeRequest.header, VMMDevReq_GetSeamlessChangeRequest); 83 83 seamlessChangeRequest.eventAck = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; 84 rc = vbglR3GRPerform(&seamlessChangeRequest.header);84 rc = VbglR3GRPerform(&seamlessChangeRequest.header); 85 85 if (RT_SUCCESS(rc)) 86 86 { … … 102 102 * @param pRects list of visible rectangles on the guest display 103 103 * 104 * @todo A scatter-gather version of vbglR3GRPerform would be nice, so that we don't have104 * @todo A scatter-gather version of VbglR3GRPerform would be nice, so that we don't have 105 105 * to copy our rectangle and header data into a single structure and perform an 106 106 * additional allocation. … … 113 113 if (0 == cRects) 114 114 return VINF_SUCCESS; 115 rc = vbglR3GRAlloc((VMMDevRequestHeader **)&req,115 rc = VbglR3GRAlloc((VMMDevRequestHeader **)&req, 116 116 sizeof(VMMDevVideoSetVisibleRegion) + (cRects - 1) * sizeof(RTRECT), 117 117 VMMDevReq_VideoSetVisibleRegion); … … 120 120 req->cRect = cRects; 121 121 memcpy(&req->Rect, pRects, cRects * sizeof(RTRECT)); 122 rc = vbglR3GRPerform(&req->header);123 vbglR3GRFree(&req->header);122 rc = VbglR3GRPerform(&req->header); 123 VbglR3GRFree(&req->header); 124 124 if (RT_SUCCESS(rc)) 125 125 {
Note:
See TracChangeset
for help on using the changeset viewer.