Changeset 6507 in vbox for trunk/src/VBox
- Timestamp:
- Jan 25, 2008 10:24:51 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r6498 r6507 33 33 * @param fEnable Pass zero to disable, any other value to enable. 34 34 */ 35 VBGLR3DECL(int) VbglR3VideoAccelEnable( uint32_tfEnable)35 VBGLR3DECL(int) VbglR3VideoAccelEnable(bool fEnable) 36 36 { 37 37 VMMDevVideoAccelEnable Req; … … 65 65 * @param xHot X coordinate of hot spot. 66 66 * @param yHot Y coordinate of hot spot. 67 * @param widthPointer width.68 * @param heightPointer height.69 * @param pv 70 * @param cbImg SizeThe 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. 71 71 * This should be the size of the image data exceeding the size of 72 72 * the VMMDevReqMousePointer structure. 73 73 */ 74 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t width, uint32_t height, void *pv, size_t cbImgSize)74 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, const void *pvImg, size_t cbImg) 75 75 { 76 76 VMMDevReqMousePointer *pReq; 77 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqMousePointer) + cbImg Size, VMMDevReq_SetPointerShape);77 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqMousePointer) + cbImg, VMMDevReq_SetPointerShape); 78 78 if (RT_SUCCESS(rc)) 79 79 { … … 81 81 pReq->xHot = xHot; 82 82 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); 87 87 88 88 rc = vbglR3GRPerform(&pReq->header); … … 92 92 if (RT_SUCCESS(pReq->header.rc)) 93 93 return VINF_SUCCESS; 94 94 95 rc = pReq->header.rc; 95 96 }
Note:
See TracChangeset
for help on using the changeset viewer.