Changeset 6458 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jan 23, 2008 6:23:24 AM (17 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk
r6447 r6458 103 103 VBoxGuestR3LibMouse.cpp \ 104 104 VBoxGuestR3LibMisc.cpp \ 105 VBoxGuestR3LibSeamless.cpp \ 105 106 VBoxGuestR3LibTime.cpp \ 106 107 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r6454 r6458 81 81 } 82 82 83 /** 84 * Query the last display change request. 85 * 86 * @returns iprt status value 87 * @retval xres horizontal pixel resolution (0 = do not change) 88 * @retval yres vertical pixel resolution (0 = do not change) 89 * @retval bpp bits per pixel (0 = do not change) 90 * @param eventAck Flag that the request is an acknowlegement for the 91 * VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST. 92 * Values: 93 * 0 - just querying, 94 * VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST - event acknowledged. 95 * @param display 0 for primary display, 1 for the first secondary, etc. 96 */ 97 VBGLR3DECL(int) VbglR3GetDisplayChangeRequest(uint32_t *px, uint32_t *py, uint32_t *pbpp, 98 uint32_t eventAck, uint32_t display) 99 { 100 VMMDevDisplayChangeRequest2 Req; 101 vmmdevInitRequest(&Req.header, VMMDevReq_GetDisplayChangeRequest2); 102 Req.xres = 0; 103 Req.yres = 0; 104 Req.bpp = 0; 105 Req.eventAck = eventAck; 106 Req.display = display; 107 int rc = vbglR3GRPerform(&Req.header); 108 if (RT_SUCCESS(rc)) 109 { 110 *px = Req.xres; 111 *py = Req.yres; 112 *pbpp = Req.bpp; 113 } 114 return rc; 115 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
r6290 r6458 27 27 #include <VBox/log.h> 28 28 29 30 /* Move this to a header { */ 31 32 extern int vbglR3DoIOCtl(unsigned iFunction, void *pvData, size_t cbData); 33 34 /* } */ 29 #include "VBGLR3Internal.h" 35 30 36 31 /** … … 51 46 vmmdevInitRequest(&vmmreqGuestCaps.header, VMMDevReq_ReportGuestCapabilities); 52 47 vmmreqGuestCaps.caps = fState ? VMMDEV_GUEST_SUPPORTS_SEAMLESS : 0; 53 rc = VbglR3GRPerform(&vmmreqGuestCaps.header);48 rc = vbglR3GRPerform(&vmmreqGuestCaps.header); 54 49 #ifdef DEBUG 55 50 if (RT_SUCCESS(rc)) … … 87 82 vmmdevInitRequest(&seamlessChangeRequest.header, VMMDevReq_GetSeamlessChangeRequest); 88 83 seamlessChangeRequest.eventAck = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; 89 rc = VbglR3GRPerform(&seamlessChangeRequest.header);84 rc = vbglR3GRPerform(&seamlessChangeRequest.header); 90 85 if (RT_SUCCESS(rc)) 91 86 { … … 107 102 * @param pRects list of visible rectangles on the guest display 108 103 * 109 * @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 110 105 * to copy our rectangle and header data into a single structure and perform an 111 106 * additional allocation. … … 118 113 if (0 == cRects) 119 114 return VINF_SUCCESS; 120 rc = VbglR3GRAlloc((VMMDevRequestHeader **)&req,115 rc = vbglR3GRAlloc((VMMDevRequestHeader **)&req, 121 116 sizeof(VMMDevVideoSetVisibleRegion) + (cRects - 1) * sizeof(RTRECT), 122 117 VMMDevReq_VideoSetVisibleRegion); … … 125 120 req->cRect = cRects; 126 121 memcpy(&req->Rect, pRects, cRects * sizeof(RTRECT)); 127 rc = VbglR3GRPerform(&req->header);128 VbglR3GRFree(&req->header);122 rc = vbglR3GRPerform(&req->header); 123 vbglR3GRFree(&req->header); 129 124 if (RT_SUCCESS(rc)) 130 125 {
Note:
See TracChangeset
for help on using the changeset viewer.