VirtualBox

Ignore:
Timestamp:
May 21, 2015 10:11:10 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100508
Message:

SharedOpenGL: fix crFbBltGetContentsScaledDirect regression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp

    r55973 r55998  
    196196    PCR_BLITTER pEnteredBlitter = NULL;
    197197
     198    /* Scaled texture size and rect calculated for every new "entered" texture. */
     199    uint32_t width = 0, height = 0;
     200    RTRECT ScaledSrcRect = {0};
     201
    198202    VBOXVR_SCR_COMPOSITOR_CONST_ITERATOR Iter;
    199203    int32_t srcWidth = pSrcRectSize->cx;
     
    227231        ScaledEntryPoint.x = CR_FLOAT_RCAST(int32_t, strX * CrVrScrCompositorEntryRectGet(pEntry)->xLeft) + pDstRect->xLeft;
    228232        ScaledEntryPoint.y = CR_FLOAT_RCAST(int32_t, strY * CrVrScrCompositorEntryRectGet(pEntry)->yTop) + pDstRect->yTop;
    229 
    230         /* Scaled texture size and rect. */
    231         uint32_t width = 0, height = 0;
    232         RTRECT ScaledSrcRect = {0};
    233233
    234234        CR_TEXDATA *pTex = CrVrScrCompositorEntryTexGet(pEntry);
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