Changeset 51146 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Apr 25, 2014 3:24:57 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93469
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r51141 r51146 306 306 uint32_t width = 0, height = 0; 307 307 RTPOINT ScaledEntryPoint = {0}; 308 RTRECT ScaledSrcRect = {0}; 308 309 309 310 VBOXVR_SCR_COMPOSITOR_CONST_ITERATOR Iter; … … 424 425 ScaledEntryPoint.x = CR_FLOAT_RCAST(int32_t, strX * CrVrScrCompositorEntryRectGet(pEntry)->xLeft) + pDstRect->xLeft; 425 426 ScaledEntryPoint.y = CR_FLOAT_RCAST(int32_t, strY * CrVrScrCompositorEntryRectGet(pEntry)->yTop) + pDstRect->yTop; 427 ScaledSrcRect.xLeft = ScaledEntryPoint.x; 428 ScaledSrcRect.yTop = ScaledEntryPoint.y; 429 ScaledSrcRect.xRight = width + ScaledEntryPoint.x; 430 ScaledSrcRect.yBottom = height + ScaledEntryPoint.y; 426 431 } 432 433 VBoxRectIntersect(&Intersection, &ScaledSrcRect); 434 if (VBoxRectIsZero(&Intersection)) 435 continue; 427 436 428 437 rc = CrTdBltDataAcquireScaled(pTex, GL_BGRA, false, width, height, &pSrcImg); … … 475 484 476 485 crFbImgFromFb(hFb, &FbImg); 486 487 for (uint32_t i = 0; i < c2DRects; ++i) 488 { 489 VBoxRectScale(&p2DRects[i], strX, strY); 490 } 477 491 478 492 CrMBltImgScaled(&FbImg, pSrcRectSize, pDstRect, c2DRects, p2DRects, pDst); … … 5007 5021 5008 5022 const VBOXVR_TEXTURE *pVrTex = CrTdTexGet(pTex); 5009 RTRECT SrcRect, DstRect;5010 5023 if (!width) 5011 5024 {
Note:
See TracChangeset
for help on using the changeset viewer.