Changeset 39602 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9
- Timestamp:
- Dec 14, 2011 11:12:17 AM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/device.c
r39570 r39602 478 478 return ret; 479 479 } 480 #ifdef VBOX_WITH_WDDM 480 481 481 static HRESULT IDirect3DDevice9Impl_DoCreateAdditionalSwapChain(IDirect3DDevice9Ex *iface, 482 482 D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain) 483 #else484 static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface,485 D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)486 #endif487 483 { 488 484 IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; … … 514 510 } 515 511 516 #ifdef VBOX_WITH_WDDM517 512 static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface, 518 513 D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain) … … 541 536 return D3D_OK; 542 537 } 543 #endif544 538 545 539 static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data) { … … 3111 3105 local_parameters.PresentationInterval = present_parameters->PresentationInterval; 3112 3106 3113 #ifdef VBOX_WITH_WDDM3114 3107 hr = IDirect3DDevice9Impl_DoCreateAdditionalSwapChain((IDirect3DDevice9Ex *)This, 3115 3108 &local_parameters, (IDirect3DSwapChain9 **)&d3d_swapchain); 3116 #else3117 hr = IDirect3DDevice9Impl_CreateAdditionalSwapChain((IDirect3DDevice9Ex *)This,3118 &local_parameters, (IDirect3DSwapChain9 **)&d3d_swapchain);3119 #endif3120 3109 if (FAILED(hr)) 3121 3110 { -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/directx.c
r39570 r39602 434 434 /* fixup caps */ 435 435 #ifdef VBOX_WITH_WDDM 436 /* needed for Windows Media Player to work properly */ 437 pCaps->Caps |= D3DCAPS_READ_SCANLINE; 436 438 pCaps->Caps2 |= 0x00080000 /*D3DCAPS2_CANRENDERWINDOWED*/; 437 439 pCaps->Caps2 |= D3DCAPS2_CANSHARERESOURCE; … … 482 484 #endif 483 485 484 /* needed for Windows Media Player to work properly */485 pCaps->Caps |= D3DCAPS_READ_SCANLINE;486 487 486 TRACE("(%p) returning %p\n", This, pCaps); 488 487
Note:
See TracChangeset
for help on using the changeset viewer.