Changeset 104805 in vbox
- Timestamp:
- May 28, 2024 4:19:55 PM (6 months ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
r103469 r104805 1503 1503 int const h = pMap->cRows; 1504 1504 1505 const int cbBitmap = pMap->cbRow * pMap->cRows * 4; 1505 int const cbBitmap = pMap->cbRow * pMap->cRows; 1506 int const cBits = ( pMap->format == SVGA3D_R16G16B16A16_FLOAT 1507 || pMap->format == SVGA3D_R32G32B32A32_FLOAT) 1508 ? 32 1509 : pMap->cbBlock * 8; 1506 1510 1507 1511 FILE *f = fopen(pszFilename, "wb"); … … 1509 1513 return VERR_FILE_NOT_FOUND; 1510 1514 1515 /* Always write 32 bit bitmap which can be displayed. */ 1511 1516 #ifdef RT_OS_WINDOWS 1512 if ( pMap->cbBlock == 4)1517 if (cBits == 32) 1513 1518 { 1514 1519 BMPFILEHDR fileHdr; -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp
r103574 r104805 6553 6553 break; 6554 6554 } 6555 case DXGI_FORMAT_B8G8R8A8_UNORM: 6556 { 6557 uint8_t const *pValues = (uint8_t const *)pvElementData; 6558 Log8(("{ /*8unorm*/ %u, %u, %u, %u },", 6559 pValues[0], pValues[1], pValues[2], pValues[3])); 6560 break; 6561 } 6555 6562 case DXGI_FORMAT_R8G8B8A8_UNORM: 6556 6563 {
Note:
See TracChangeset
for help on using the changeset viewer.