Changeset 6531 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jan 28, 2008 4:40:23 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27557
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r6506 r6531 80 80 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CTL_FILTER_MASK, &Info, sizeof(Info)); 81 81 } 82 83 /**84 * Query the last display change request.85 *86 * @returns iprt status value87 * @param pcx Where to store the horizontal pixel resolution (0 = do not change).88 * @param pcy Where to store the vertical pixel resolution (0 = do not change).89 * @param pcBits Where to store the bits per pixel (0 = do not change).90 * @param fEventAck Flag that the request is an acknowlegement for the91 * VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST.92 * Values:93 * 0 - just querying,94 * VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST - event acknowledged.95 * @param iDisplay 0 for primary display, 1 for the first secondary, etc.96 * @todo move to VBoxGuestR3LibVideo.cpp97 */98 VBGLR3DECL(int) VbglR3GetDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits,99 uint32_t fEventAck, uint32_t iDisplay)100 {101 VMMDevDisplayChangeRequest2 Req;102 vmmdevInitRequest(&Req.header, VMMDevReq_GetDisplayChangeRequest2);103 Req.xres = 0;104 Req.yres = 0;105 Req.bpp = 0;106 Req.eventAck = fEventAck;107 Req.display = iDisplay;108 int rc = vbglR3GRPerform(&Req.header);109 if (RT_SUCCESS(rc))110 {111 *pcx = Req.xres;112 *pcy = Req.yres;113 *pcBits = Req.bpp;114 }115 return rc;116 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r6518 r6531 97 97 } 98 98 99 100 /** 101 * Query the last display change request. 102 * 103 * @returns iprt status value 104 * @param pcx Where to store the horizontal pixel resolution (0 = do not change). 105 * @param pcy Where to store the vertical pixel resolution (0 = do not change). 106 * @param pcBits Where to store the bits per pixel (0 = do not change). 107 * @param fEventAck Flag that the request is an acknowlegement for the 108 * VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST. 109 * Values: 110 * 0 - just querying, 111 * VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST - event acknowledged. 112 * @param iDisplay 0 for primary display, 1 for the first secondary, etc. 113 */ 114 VBGLR3DECL(int) VbglR3GetDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, 115 uint32_t fEventAck, uint32_t iDisplay) 116 { 117 VMMDevDisplayChangeRequest2 Req; 118 vmmdevInitRequest(&Req.header, VMMDevReq_GetDisplayChangeRequest2); 119 Req.xres = 0; 120 Req.yres = 0; 121 Req.bpp = 0; 122 Req.eventAck = fEventAck; 123 Req.display = iDisplay; 124 int rc = vbglR3GRPerform(&Req.header); 125 if (RT_SUCCESS(rc)) 126 { 127 *pcx = Req.xres; 128 *pcy = Req.yres; 129 *pcBits = Req.bpp; 130 } 131 return rc; 132 }
Note:
See TracChangeset
for help on using the changeset viewer.