Changeset 8398 in vbox
- Timestamp:
- Apr 25, 2008 6:23:57 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r8366 r8398 1464 1464 /** @name Display 1465 1465 * @{ */ 1466 VBGLR3DECL(int) VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, 1467 uint32_t *pcBits,uint32_t *piDisplay); 1468 VBGLR3DECL(int) VbglR3DisplayChangeWaitEvent(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, 1469 uint32_t *piDisplay); 1470 VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, 1471 uint32_t cBits); 1472 VBGLR3DECL(int) VbglR3ReportMaxGuestResolution(uint32_t u32Width, uint32_t u32Height); 1466 VBGLR3DECL(int) VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits,uint32_t *piDisplay); 1467 VBGLR3DECL(int) VbglR3DisplayChangeWaitEvent(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay); 1468 VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, uint32_t cBits); 1469 VBGLR3DECL(int) VbglR3ReportMaxGuestResolution(uint32_t cx, uint32_t cy); 1473 1470 /** @} */ 1474 1471 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r8366 r8398 127 127 * primary display, 1 for the first secondary, etc. 128 128 */ 129 VBGLR3DECL(int) VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, 130 uint32_t *piDisplay) 129 VBGLR3DECL(int) VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay) 131 130 { 132 131 VMMDevDisplayChangeRequest2 Req = { { 0 } }; … … 157 156 * 158 157 * @returns IPRT status value 159 * @param pcx on success, where to return the requested display width. 0 means no 160 * change. 161 * @param pcy on success, where to return the requested display height. 0 means no 162 * change. 163 * @param pcBits on success, where to return the requested bits per pixel. 0 means no 164 * change. 165 * @param piDisplay on success, where to return the index of the display to be changed. 166 */ 167 VBGLR3DECL(int) VbglR3DisplayChangeWaitEvent(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, 168 uint32_t *piDisplay) 158 * @param pcx On success, where to return the requested display width. 159 * 0 means no change. 160 * @param pcy On success, where to return the requested display height. 161 * 0 means no change. 162 * @param pcBits On success, where to return the requested bits per pixel. 163 * 0 means no change. 164 * @param piDisplay On success, where to return the index of the display to be changed. 165 */ 166 VBGLR3DECL(int) VbglR3DisplayChangeWaitEvent(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay) 169 167 { 170 168 VBoxGuestWaitEventInfo waitEvent; … … 215 213 * @param cBits the bpp of the mode being queried 216 214 */ 217 VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, 218 uint32_t cBits) 215 VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, uint32_t cBits) 219 216 { 220 217 bool fRc = false; … … 240 237 * Report the maximum resolution that we currently support to the host. 241 238 * 242 * @returns iprt status value 243 * @param u32Width the maximum horizontal resolution244 * @param u32Height the maximum vertical resolution245 */ 246 VBGLR3DECL(int) VbglR3ReportMaxGuestResolution(uint32_t u32Width, uint32_t u32Height)239 * @returns iprt status value. 240 * @param cx The maximum horizontal resolution. 241 * @param cy The maximum vertical resolution. 242 */ 243 VBGLR3DECL(int) VbglR3ReportMaxGuestResolution(uint32_t cx, uint32_t cy) 247 244 { 248 245 int rc = VERR_UNRESOLVED_ERROR; … … 250 247 251 248 vmmdevInitRequest(&req.header, VMMDevReq_SetMaxGuestResolution); 252 req.u32MaxWidth = u32Width;253 req.u32MaxHeight = u32Height;249 req.u32MaxWidth = cx; 250 req.u32MaxHeight = cy; 254 251 rc = vbglR3GRPerform(&req.header); 255 252 if (!RT_SUCCESS(rc) || !RT_SUCCESS(req.header.rc))
Note:
See TracChangeset
for help on using the changeset viewer.