VirtualBox

Ignore:
Timestamp:
Jun 16, 2010 9:13:19 PM (15 years ago)
Author:
vboxsync
Message:

wddm/2d: bugfixing

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVhwa.cpp

    r30239 r30264  
    562562        Assert(pSurf->SurfDesc.pitch);
    563563        /* @todo: make this properly */
    564         pSurf->SurfDesc.bpp = (pSurf->SurfDesc.cbSize * 8) / pSurf->SurfDesc.height / pSurf->SurfDesc.pitch;
     564        pSurf->SurfDesc.bpp = pSurf->SurfDesc.pitch * 8 / pSurf->SurfDesc.width;
    565565        Assert(pSurf->SurfDesc.bpp);
    566566    }
     
    954954            {
    955955                int tmpRc;
    956                 for (uint32_t j = i; j < pRc->cAllocations; ++j)
     956                for (uint32_t j = 0; j < i; ++j)
    957957                {
    958958                    PVBOXWDDM_ALLOCATION pDestroyAlloc = &pRc->aAllocations[j];
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r30239 r30264  
    15331533                                if (RT_SUCCESS(rc))
    15341534                                {
     1535                                    pAllocationInfo->Flags.Overlay = 1;
     1536                                    pAllocationInfo->Flags.CpuVisible = 1;
    15351537                                    pAllocationInfo->Size = pAllocation->SurfDesc.cbSize;
    15361538                                }
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