VirtualBox

Changeset 57083 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 26, 2015 8:49:04 PM (9 years ago)
Author:
vboxsync
Message:

VMSVGA3d: Corresponding win build fixes.

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-shared.cpp

    r57082 r57083  
    444444     */
    445445    uint32_t iStart = 0;
    446     uint32_t iEnd   = pEnumMap->cValues;
     446    uint32_t iEnd   = (uint32_t)pEnumMap->cValues;
    447447    for (;;)
    448448    {
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-shared.h

    r57082 r57083  
    15081508    { D3DFMT_FORCE_DWORD    , "FORCE_DWORD" },
    15091509};
     1510VMSVGAINFOENUMMAP_MAKE(static, g_D3DFormat2String, g_aD3DFormats, "D3DFMT_");
    15101511
    15111512/** Values for D3DMULTISAMPLE_TYPE, prefix D3DMULTISAMPLE_. */
     
    15311532    { D3DMULTISAMPLE_FORCE_DWORD    , "FORCE_DWORD" },
    15321533};
     1534VMSVGAINFOENUMMAP_MAKE(static, g_D3DMultiSampleType2String, g_aD3DMultiSampleTypes, "D3DMULTISAMPLE_");
    15331535
    15341536/** D3DUSAGE_XXX flag value, prefix D3DUSAGE_. */
     
    16251627#ifdef VMSVGA3D_DIRECT3D
    16261628    pHlp->pfnPrintf(pHlp, "formatD3D:               %s\n",
    1627                     vmsvgaFormatEnumValueEx(szTmp, sizeof(szTmp), NULL, pSurface->formatD3D,
    1628                                             "D3DFMT_", g_aD3DFormats, RT_ELEMENTS(g_aD3DFormats)));
     1629                    vmsvgaFormatEnumValueEx(szTmp, sizeof(szTmp), NULL, pSurface->formatD3D, true, &g_D3DFormat2String));
    16291630    pHlp->pfnPrintf(pHlp, "fUsageD3D:               %#x", pSurface->fUsageD3D);
    16301631    vmsvga3dInfoU32Flags(pHlp, pSurface->fUsageD3D, "D3DUSAGE_", g_aD3DUsageFlags, RT_ELEMENTS(g_aD3DUsageFlags));
     
    16321633    pHlp->pfnPrintf(pHlp, "multiSampleTypeD3D:      %s\n",
    16331634                    vmsvgaFormatEnumValueEx(szTmp, sizeof(szTmp), NULL, pSurface->multiSampleTypeD3D,
    1634                                             "D3DMULTISAMPLE", g_aD3DMultiSampleTypes, RT_ELEMENTS(g_aD3DMultiSampleTypes)));
     1635                                            true, &g_D3DMultiSampleType2String));
    16351636    if (pSurface->hSharedObject != NULL)
    16361637        pHlp->pfnPrintf(pHlp, "hSharedObject:           %p\n", pSurface->hSharedObject);
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