VirtualBox

Ignore:
Timestamp:
Oct 21, 2015 11:44:49 AM (9 years ago)
Author:
vboxsync
Message:

WDDM: use correct pitch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp

    r57915 r58358  
    42704270                        D3DLOCKED_RECT LRect;
    42714271                        LRect.pBits = LockData.pData;
    4272                         LRect.Pitch = ((pAlloc->SurfDesc.bpp * pAlloc->SurfDesc.width) + 7) >> 3;
     4272                        LRect.Pitch = pAlloc->SurfDesc.pitch;
    42734273                        Assert(pAlloc->DirtyRegion.fFlags & VBOXWDDM_DIRTYREGION_F_VALID);
    42744274                        VBoxD3DIfLockUnlockMemSynch(pAlloc, &LRect, &pAlloc->DirtyRegion.Rect, TRUE /* bool bToLockInfo*/);
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