VirtualBox

Changeset 6507 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 25, 2008 10:24:51 AM (17 years ago)
Author:
vboxsync
Message:

r=bird: Use bool for boolean. fix some hungarian spelling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r6498 r6507  
    3333 * @param   fEnable       Pass zero to disable, any other value to enable.
    3434 */
    35 VBGLR3DECL(int) VbglR3VideoAccelEnable(uint32_t fEnable)
     35VBGLR3DECL(int) VbglR3VideoAccelEnable(bool fEnable)
    3636{
    3737    VMMDevVideoAccelEnable Req;
     
    6565 * @param   xHot        X coordinate of hot spot.
    6666 * @param   yHot        Y coordinate of hot spot.
    67  * @param   width       Pointer width.
    68  * @param   height      Pointer height.
    69  * @param   pv          Pointer to the image data (can be NULL).
    70  * @param   cbImgSize   The size of the image data not including the pre-allocated area.
     67 * @param   cx          Pointer width.
     68 * @param   cy          Pointer height.
     69 * @param   pvImg       Pointer to the image data (can be NULL).
     70 * @param   cbImg       The size of the image data not including the pre-allocated area.
    7171 *                      This should be the size of the image data exceeding the size of
    7272 *                      the VMMDevReqMousePointer structure.
    7373 */
    74 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t width, uint32_t height, void *pv, size_t cbImgSize)
     74VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, const void *pvImg, size_t cbImg)
    7575{
    7676    VMMDevReqMousePointer *pReq;
    77     int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqMousePointer) + cbImgSize, VMMDevReq_SetPointerShape);
     77    int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqMousePointer) + cbImg, VMMDevReq_SetPointerShape);
    7878    if (RT_SUCCESS(rc))
    7979    {
     
    8181        pReq->xHot = xHot;
    8282        pReq->yHot = yHot;
    83         pReq->width = width;
    84         pReq->height = height;
    85         if (pv)
    86             memcpy(pReq->pointerData, pv, sizeof(pReq->pointerData) + cbImgSize);
     83        pReq->width = cx;
     84        pReq->height = cy;
     85        if (pvImg)
     86            memcpy(pReq->pointerData, pvImg, sizeof(pReq->pointerData) + cbImg);
    8787
    8888        rc = vbglR3GRPerform(&pReq->header);
     
    9292            if (RT_SUCCESS(pReq->header.rc))
    9393                return VINF_SUCCESS;
     94
    9495            rc = pReq->header.rc;
    9596        }
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