Changeset 50773 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Timestamp:
- Mar 13, 2014 3:45:46 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92791
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r50754 r50773 3238 3238 { 3239 3239 /* success */ 3240 pCmd-> i8Result = 0;3240 pCmd->u.i8Result = 0; 3241 3241 } 3242 3242 else 3243 3243 { 3244 3244 crWarning("crVBoxServerCmdVbvaCrCmdProcess failed, rc %d", rc); 3245 pCmd-> i8Result = -1;3245 pCmd->u.i8Result = -1; 3246 3246 } 3247 3247 break; … … 3254 3254 default: 3255 3255 WARN(("unsupported command")); 3256 pCmd-> i8Result = -1;3256 pCmd->u.i8Result = -1; 3257 3257 } 3258 3258 return VINF_SUCCESS; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r50754 r50773 248 248 Assert(srcX >= 0); 249 249 Assert(srcY >= 0); 250 Assert(srcX < pSrc->width);251 Assert(srcY < pSrc->height);250 Assert(srcX < (int32_t)pSrc->width); 251 Assert(srcY < (int32_t)pSrc->height); 252 252 253 253 int32_t dstX = pCopyRect->xLeft - pDstDataPoint->x; … … 259 259 uint8_t *pu8Dst = ((uint8_t*)pDst->pvData) + pDst->pitch * dstY + dstX * 4; 260 260 261 crFbBltMem(pu8Src, fSrcInvert ? - pSrc->pitch :pSrc->pitch, pu8Dst, pDst->pitch, pCopyRect->xRight - pCopyRect->xLeft, pCopyRect->yBottom - pCopyRect->yTop);261 crFbBltMem(pu8Src, fSrcInvert ? -((int32_t)pSrc->pitch) : (int32_t)pSrc->pitch, pu8Dst, pDst->pitch, pCopyRect->xRight - pCopyRect->xLeft, pCopyRect->yBottom - pCopyRect->yTop); 262 262 } 263 263 … … 268 268 Assert(srcX >= 0); 269 269 Assert(srcY >= 0); 270 Assert(srcX < pSrc->width);271 Assert(srcY < pSrc->height);270 Assert(srcX < (int32_t)pSrc->width); 271 Assert(srcY < (int32_t)pSrc->height); 272 272 273 273 RTPOINT ScaledDtsDataPoint; … … 316 316 ScaledDstHeight, 317 317 pu8Src, 318 fSrcInvert ? - pSrc->pitch :pSrc->pitch,318 fSrcInvert ? -((int32_t)pSrc->pitch) : (int32_t)pSrc->pitch, 319 319 pCopyRect->xRight - pCopyRect->xLeft, pCopyRect->yBottom - pCopyRect->yTop); 320 320 } … … 3825 3825 static HCR_FRAMEBUFFER crPMgrFbGetNextEnabled(uint32_t i) 3826 3826 { 3827 for (;i < cr_server.screenCount; ++i)3827 for (;i < (uint32_t)cr_server.screenCount; ++i) 3828 3828 { 3829 3829 HCR_FRAMEBUFFER hFb = CrPMgrFbGetEnabled(i); … … 3837 3837 static HCR_FRAMEBUFFER crPMgrFbGetNextInitialized(uint32_t i) 3838 3838 { 3839 for (;i < cr_server.screenCount; ++i)3839 for (;i < (uint32_t)cr_server.screenCount; ++i) 3840 3840 { 3841 3841 HCR_FRAMEBUFFER hFb = CrPMgrFbGetInitialized(i); … … 4185 4185 void CrPMgrHlpGlblUpdateEnd(CR_FBMAP *pMap) 4186 4186 { 4187 for (uint32_t i = 0; i < cr_server.screenCount; ++i)4187 for (uint32_t i = 0; i < (uint32_t)cr_server.screenCount; ++i) 4188 4188 { 4189 4189 if (!CrFBmIsSet(pMap, i)) … … 4654 4654 { 4655 4655 VBOXCMDVBVA_BLT_PRIMARY *pBlt = (VBOXCMDVBVA_BLT_PRIMARY*)pCmd; 4656 uint8_t u8PrimaryID = pBlt->Hdr.u 8PrimaryID;4656 uint8_t u8PrimaryID = pBlt->Hdr.u.u8PrimaryID; 4657 4657 HCR_FRAMEBUFFER hFb = CrPMgrFbGetEnabled(u8PrimaryID); 4658 4658 if (!hFb) 4659 4659 { 4660 4660 WARN(("request to present on disabled framebuffer, ignore")); 4661 pCmd-> i8Result = -1;4661 pCmd->u.i8Result = -1; 4662 4662 return VINF_SUCCESS; 4663 4663 } … … 4677 4677 WARN(("RTMemAlloc failed!")); 4678 4678 g_CrPresenter.cbTmpBuf = 0; 4679 pCmd-> i8Result = -1;4679 pCmd->u.i8Result = -1; 4680 4680 return VINF_SUCCESS; 4681 4681 } … … 4697 4697 { 4698 4698 /* TexPresent */ 4699 texId = pBlt->alloc. id;4699 texId = pBlt->alloc.u.id; 4700 4700 } 4701 4701 else 4702 4702 { 4703 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc. offVRAM;4703 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc.u.offVRAM; 4704 4704 const VBVAINFOSCREEN *pScreen = CrFbGetScreenInfo(hFb); 4705 4705 uint32_t cbScreen = pScreen->u32LineSize * pScreen->u32Height; … … 4708 4708 { 4709 4709 WARN(("invalid param")); 4710 pCmd-> i8Result = -1;4710 pCmd->u.i8Result = -1; 4711 4711 return VINF_SUCCESS; 4712 4712 } … … 4724 4724 /* blit from one primary to another primary, wow */ 4725 4725 WARN(("not implemented")); 4726 pCmd-> i8Result = -1;4726 pCmd->u.i8Result = -1; 4727 4727 return VINF_SUCCESS; 4728 4728 } … … 4734 4734 if (u8Flags & VBOXCMDVBVA_OPF_ALLOC_DSTID) 4735 4735 { 4736 uint32_t texId = pBlt->alloc. id;4736 uint32_t texId = pBlt->alloc.u.id; 4737 4737 WARN(("not implemented")); 4738 pCmd-> i8Result = -1;4738 pCmd->u.i8Result = -1; 4739 4739 return VINF_SUCCESS; 4740 4740 } 4741 4741 else 4742 4742 { 4743 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc. offVRAM;4743 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc.u.offVRAM; 4744 4744 const VBVAINFOSCREEN *pScreen = CrFbGetScreenInfo(hFb); 4745 4745 uint32_t cbScreen = pScreen->u32LineSize * pScreen->u32Height; … … 4748 4748 { 4749 4749 WARN(("invalid param")); 4750 pCmd-> i8Result = -1;4750 pCmd->u.i8Result = -1; 4751 4751 return VINF_SUCCESS; 4752 4752 } … … 4770 4770 { 4771 4771 WARN(("CrFbBltGetContents failed %d", rc)); 4772 pCmd-> i8Result = -1;4772 pCmd->u.i8Result = -1; 4773 4773 return VINF_SUCCESS; 4774 4774 } … … 4779 4779 { 4780 4780 WARN(("not implemented")); 4781 pCmd-> i8Result = -1;4782 return VINF_SUCCESS; 4783 } 4784 4785 pCmd-> i8Result = 0;4781 pCmd->u.i8Result = -1; 4782 return VINF_SUCCESS; 4783 } 4784 4785 pCmd->u.i8Result = 0; 4786 4786 return VINF_SUCCESS; 4787 4787 }
Note:
See TracChangeset
for help on using the changeset viewer.