VirtualBox

Ignore:
Timestamp:
Sep 17, 2010 8:18:39 PM (14 years ago)
Author:
vboxsync
Message:

wddm: VBOXWDDM->VBOX_WITH_WDDM

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/d3d9_private.h

    r30916 r32622  
    4848#include "wine/wined3d.h"
    4949
    50 #ifdef VBOXWDDM
     50#ifdef VBOX_WITH_WDDM
    5151#include "../vbox/VBoxWineEx.h"
    5252#endif
     
    321321        UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level,
    322322        DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality
    323 #ifdef VBOXWDDM
     323#ifdef VBOX_WITH_WDDM
    324324        , HANDLE *shared_handle
    325325        , void *pvClientMem
     
    438438HRESULT texture_init(IDirect3DTexture9Impl *texture, IDirect3DDevice9Impl *device,
    439439        UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool
    440 #ifdef VBOXWDDM
     440#ifdef VBOX_WITH_WDDM
    441441        , HANDLE *shared_handle
    442442        , void *pvClientMem
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/device.c

    r32461 r32622  
    462462    return ret;
    463463}
    464 #ifdef VBOXWDDM
     464#ifdef VBOX_WITH_WDDM
    465465static HRESULT IDirect3DDevice9Impl_DoCreateAdditionalSwapChain(IDirect3DDevice9Ex *iface,
    466466        D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)
     
    498498}
    499499
    500 #ifdef VBOXWDDM
     500#ifdef VBOX_WITH_WDDM
    501501static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface,
    502502        D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)
     
    746746}
    747747
    748 #ifdef VBOXWDDM
     748#ifdef VBOX_WITH_WDDM
    749749//#pragma comment(linker, "/export:VBoxWineExD3DDev9Flush=_VBoxWineExD3DDev9Flush@4")
    750750
     
    815815        D3DPOOL pool, IDirect3DTexture9 **texture, HANDLE *shared_handle)
    816816{
    817 #ifdef VBOXWDDM
     817#ifdef VBOX_WITH_WDDM
    818818    return VBoxWineExD3DDev9CreateTexture(iface, width, height, levels, usage, format,
    819819            pool, texture, shared_handle, NULL);
     
    979979        D3DFORMAT Format, BOOL Lockable, BOOL Discard, UINT Level, IDirect3DSurface9 **ppSurface,
    980980        UINT Usage, D3DPOOL Pool, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality
    981 #ifdef VBOXWDDM
     981#ifdef VBOX_WITH_WDDM
    982982        , HANDLE *shared_handle
    983983        , void *pvClientMem
     
    10031003    hr = surface_init(object, This, Width, Height, Format, Lockable, Discard,
    10041004            Level, Usage, Pool, MultiSample, MultisampleQuality
    1005 #ifdef VBOXWDDM
     1005#ifdef VBOX_WITH_WDDM
    10061006            , shared_handle
    10071007            , pvClientMem
     
    10341034    hr = IDirect3DDevice9Impl_CreateSurface(iface, Width, Height, Format, Lockable, FALSE /* Discard */,
    10351035            0 /* Level */, ppSurface, D3DUSAGE_RENDERTARGET, D3DPOOL_DEFAULT, MultiSample, MultisampleQuality
    1036 #ifdef VBOXWDDM
     1036#ifdef VBOX_WITH_WDDM
    10371037            , pSharedHandle
    10381038            , NULL
     
    10561056    hr = IDirect3DDevice9Impl_CreateSurface(iface, Width, Height, Format, TRUE /* Lockable */, Discard,
    10571057            0 /* Level */, ppSurface, D3DUSAGE_DEPTHSTENCIL, D3DPOOL_DEFAULT, MultiSample, MultisampleQuality
    1058 #ifdef VBOXWDDM
     1058#ifdef VBOX_WITH_WDDM
    10591059            , pSharedHandle
    10601060            , NULL
     
    11961196            0 /* Level */, ppSurface, 0 /* Usage (undefined/none) */, (WINED3DPOOL)Pool, D3DMULTISAMPLE_NONE,
    11971197            0 /* MultisampleQuality */
    1198 #ifdef VBOXWDDM
     1198#ifdef VBOX_WITH_WDDM
    11991199            , pSharedHandle
    12001200            , NULL
     
    27592759        IUnknown *superior, UINT width, UINT height, WINED3DFORMAT format, DWORD usage,
    27602760        WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface
    2761 #ifdef VBOXWDDM
     2761#ifdef VBOX_WITH_WDDM
    27622762        , HANDLE *shared_handle
    27632763        , void *pvClientMem
     
    27802780            d3dformat_from_wined3dformat(format), lockable, FALSE /* Discard */, level,
    27812781            (IDirect3DSurface9 **)&d3d_surface, usage, pool, D3DMULTISAMPLE_NONE, 0 /* MultisampleQuality */
    2782 #ifdef VBOXWDDM
     2782#ifdef VBOX_WITH_WDDM
    27832783            , shared_handle
    27842784            , pvClientMem
     
    29312931    local_parameters.PresentationInterval = present_parameters->PresentationInterval;
    29322932
    2933 #ifdef VBOXWDDM
     2933#ifdef VBOX_WITH_WDDM
    29342934    hr = IDirect3DDevice9Impl_DoCreateAdditionalSwapChain((IDirect3DDevice9Ex *)This,
    29352935            &local_parameters, (IDirect3DSwapChain9 **)&d3d_swapchain);
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/surface.c

    r30916 r32622  
    382382        UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level,
    383383        DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality
    384 #ifdef VBOXWDDM
     384#ifdef VBOX_WITH_WDDM
    385385        , HANDLE *shared_handle
    386386        , void *pvClientMem
     
    417417
    418418    wined3d_mutex_lock();
    419 #ifdef VBOXWDDM
     419#ifdef VBOX_WITH_WDDM
    420420    hr = IWineD3DDevice_CreateSurface(device->WineD3DDevice, width, height, wined3dformat_from_d3dformat(format),
    421421            lockable, discard, level, &surface->wineD3DSurface, usage & WINED3DUSAGE_MASK, (WINED3DPOOL)pool,
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/texture.c

    r30916 r32622  
    399399HRESULT texture_init(IDirect3DTexture9Impl *texture, IDirect3DDevice9Impl *device,
    400400        UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool
    401 #ifdef VBOXWDDM
     401#ifdef VBOX_WITH_WDDM
    402402        , HANDLE *shared_handle
    403403        , void *pvClientMem
     
    411411
    412412    wined3d_mutex_lock();
    413 #ifdef VBOXWDDM
     413#ifdef VBOX_WITH_WDDM
    414414    hr = IWineD3DDevice_CreateTexture(device->WineD3DDevice, width, height, levels,
    415415            usage & WINED3DUSAGE_MASK, wined3dformat_from_d3dformat(format), pool,
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