VirtualBox

Changeset 8398 in vbox


Ignore:
Timestamp:
Apr 25, 2008 6:23:57 PM (17 years ago)
Author:
vboxsync
Message:

cx/cy. Please, do not use 64/u32/u16/u8 prefixes unless the type is *really* important to know.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r8366 r8398  
    14641464/** @name Display
    14651465 * @{ */
    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);
     1466VBGLR3DECL(int)     VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits,uint32_t *piDisplay);
     1467VBGLR3DECL(int)     VbglR3DisplayChangeWaitEvent(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay);
     1468VBGLR3DECL(bool)    VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, uint32_t cBits);
     1469VBGLR3DECL(int)     VbglR3ReportMaxGuestResolution(uint32_t cx, uint32_t cy);
    14731470/** @}  */
    14741471
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r8366 r8398  
    127127 *                      primary display, 1 for the first secondary, etc.
    128128 */
    129 VBGLR3DECL(int) VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits,
    130                                                  uint32_t *piDisplay)
     129VBGLR3DECL(int) VbglR3GetLastDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay)
    131130{
    132131    VMMDevDisplayChangeRequest2 Req = { { 0 } };
     
    157156 *
    158157 * @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 */
     166VBGLR3DECL(int) VbglR3DisplayChangeWaitEvent(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay)
    169167{
    170168    VBoxGuestWaitEventInfo waitEvent;
     
    215213 * @param   cBits  the bpp of the mode being queried
    216214 */
    217 VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy,
    218                                           uint32_t cBits)
     215VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, uint32_t cBits)
    219216{
    220217    bool fRc = false;
     
    240237 * Report the maximum resolution that we currently support to the host.
    241238 *
    242  * @returns iprt status value
    243  * @param   u32Width   the maximum horizontal resolution
    244  * @param   u32Height  the maximum vertical resolution
    245  */
    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 */
     243VBGLR3DECL(int) VbglR3ReportMaxGuestResolution(uint32_t cx, uint32_t cy)
    247244{
    248245    int rc = VERR_UNRESOLVED_ERROR;
     
    250247
    251248    vmmdevInitRequest(&req.header, VMMDevReq_SetMaxGuestResolution);
    252     req.u32MaxWidth      = u32Width;
    253     req.u32MaxHeight     = u32Height;
     249    req.u32MaxWidth     = cx;
     250    req.u32MaxHeight    = cy;
    254251    rc = vbglR3GRPerform(&req.header);
    255252    if (!RT_SUCCESS(rc) || !RT_SUCCESS(req.header.rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette