VirtualBox

Ignore:
Timestamp:
Jul 5, 2010 5:02:02 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: fix initial size

File:
1 edited

Legend:

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

    r30623 r30626  
    32373237                        D3DPRESENT_PARAMETERS params;
    32383238                        memset(&params, 0, sizeof (params));
    3239                         //            params.BackBufferWidth = 0;
    3240                         //            params.BackBufferHeight = 0;
     3239                        params.BackBufferWidth = pResource->pSurfList[0].Width;
     3240                        params.BackBufferHeight = pResource->pSurfList[0].Height;
    32413241                        params.BackBufferFormat = vboxDDI2D3DFormat(pResource->Format);
    32423242                        Assert(pResource->SurfCount);
     
    45514551static HRESULT APIENTRY vboxWddmDDevQueryResourceResidency(HANDLE hDevice, CONST D3DDDIARG_QUERYRESOURCERESIDENCY* pData)
    45524552{
    4553     vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     4553    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     4554    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
    45544555    AssertBreakpoint();
    4555     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    4556     return E_FAIL;
     4556    HRESULT hr = S_OK;
     4557    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     4558    return hr;
    45574559}
    45584560
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