VirtualBox

Changeset 27389 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 15, 2010 11:07:04 PM (15 years ago)
Author:
vboxsync
Message:

wddm: fix image corruption for partial display updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r27383 r27389  
    144144        cbDstLine = !(cbDstLine & 7) ? cbDstLine >> 3 : (cbDstLine >> 3) + 1;
    145145        Assert(cbDstLine <= pDstDesc->pitch);
    146         uint32_t cbDstSkip = pDstDesc->pitch - cbDstLine;
     146        uint32_t cbDstSkip = pDstDesc->pitch;
    147147        uint8_t * pvDstStart = pvDstSurf + offDstStart;
    148148
     
    151151        cbSrcLine = !(cbSrcLine & 7) ? cbSrcLine >> 3 : (cbSrcLine >> 3) + 1;
    152152        Assert(cbSrcLine <= pSrcDesc->pitch);
    153         uint32_t cbSrcSkip = pSrcDesc->pitch - cbSrcLine;
     153        uint32_t cbSrcSkip = pSrcDesc->pitch;
    154154        const uint8_t * pvSrcStart = pvSrcSurf + offSrcStart;
    155155
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