Changeset 30264 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Jun 16, 2010 9:13:19 PM (15 years ago)
- 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 562 562 Assert(pSurf->SurfDesc.pitch); 563 563 /* @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; 565 565 Assert(pSurf->SurfDesc.bpp); 566 566 } … … 954 954 { 955 955 int tmpRc; 956 for (uint32_t j = i; j < pRc->cAllocations; ++j)956 for (uint32_t j = 0; j < i; ++j) 957 957 { 958 958 PVBOXWDDM_ALLOCATION pDestroyAlloc = &pRc->aAllocations[j]; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r30239 r30264 1533 1533 if (RT_SUCCESS(rc)) 1534 1534 { 1535 pAllocationInfo->Flags.Overlay = 1; 1536 pAllocationInfo->Flags.CpuVisible = 1; 1535 1537 pAllocationInfo->Size = pAllocation->SurfDesc.cbSize; 1536 1538 }
Note:
See TracChangeset
for help on using the changeset viewer.