Changeset 25949 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/volume.c
- Timestamp:
- Jan 21, 2010 9:26:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/volume.c
r23571 r25949 38 38 IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; 39 39 40 TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), ppobj); 41 40 42 if (IsEqualGUID(riid, &IID_IUnknown) 41 43 || IsEqualGUID(riid, &IID_IDirect3DVolume9)) { … … 53 55 IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; 54 56 55 TRACE(" (%p)\n", This);57 TRACE("iface %p.\n", iface); 56 58 57 59 if (This->forwardReference) { … … 62 64 /* No container, handle our own refcounting */ 63 65 ULONG ref = InterlockedIncrement(&This->ref); 64 TRACE("(%p) : AddRef from %d\n", This, ref - 1); 66 67 TRACE("%p increasing refcount to %u.\n", iface, ref); 65 68 66 69 if (ref == 1) … … 78 81 IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; 79 82 80 TRACE(" (%p)\n", This);83 TRACE("iface %p.\n", iface); 81 84 82 85 if (This->forwardReference) { … … 87 90 /* No container, handle our own refcounting */ 88 91 ULONG ref = InterlockedDecrement(&This->ref); 89 TRACE("(%p) : ReleaseRef to %d\n", This, ref); 92 93 TRACE("%p decreasing refcount to %u.\n", iface, ref); 90 94 91 95 if (ref == 0) { … … 100 104 101 105 /* IDirect3DVolume9 Interface follow: */ 102 static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(LPDIRECT3DVOLUME9 iface, IDirect3DDevice9** ppDevice) { 103 IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; 104 IWineD3DDevice *myDevice = NULL; 105 106 TRACE("iface %p, ppDevice %p\n", iface, ppDevice); 107 108 wined3d_mutex_lock(); 109 110 IWineD3DVolume_GetDevice(This->wineD3DVolume, &myDevice); 111 IWineD3DDevice_GetParent(myDevice, (IUnknown **)ppDevice); 112 IWineD3DDevice_Release(myDevice); 113 114 wined3d_mutex_unlock(); 115 116 return D3D_OK; 106 static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(IDirect3DVolume9 *iface, IDirect3DDevice9 **device) 107 { 108 IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; 109 IDirect3DResource9 *resource; 110 HRESULT hr; 111 112 TRACE("iface %p, device %p.\n", iface, device); 113 114 hr = IUnknown_QueryInterface(This->forwardReference, &IID_IDirect3DResource9, (void **)&resource); 115 if (SUCCEEDED(hr)) 116 { 117 hr = IDirect3DResource9_GetDevice(resource, device); 118 IDirect3DResource9_Release(resource); 119 120 TRACE("Returning device %p.\n", *device); 121 } 122 123 return hr; 117 124 } 118 125 … … 121 128 HRESULT hr; 122 129 123 TRACE("(%p) Relay\n", This); 130 TRACE("iface %p, guid %s, data %p, data_size %u, flags %#x.\n", 131 iface, debugstr_guid(refguid), pData, SizeOfData, Flags); 124 132 125 133 wined3d_mutex_lock(); … … 136 144 HRESULT hr; 137 145 138 TRACE("(%p) Relay\n", This); 146 TRACE("iface %p, guid %s, data %p, data_size %p.\n", 147 iface, debugstr_guid(refguid), pData, pSizeOfData); 139 148 140 149 wined3d_mutex_lock(); … … 151 160 HRESULT hr; 152 161 153 TRACE(" (%p) Relay\n", This);162 TRACE("iface %p, guid %s.\n", iface, debugstr_guid(refguid)); 154 163 155 164 wined3d_mutex_lock(); … … 166 175 HRESULT res; 167 176 168 TRACE(" (This %p, riid %s, ppContainer %p)\n", This, debugstr_guid(riid), ppContainer);177 TRACE("iface %p, riid %s, container %p.\n", iface, debugstr_guid(riid), ppContainer); 169 178 170 179 if (!This->container) return E_NOINTERFACE; … … 186 195 HRESULT hr; 187 196 188 TRACE(" (%p) Relay\n", This);197 TRACE("iface %p, desc %p.\n", iface, pDesc); 189 198 190 199 wined3d_mutex_lock(); … … 212 221 HRESULT hr; 213 222 214 TRACE("(%p) relay %p %p %p %d\n", This, This->wineD3DVolume, pLockedVolume, pBox, Flags); 223 TRACE("iface %p, locked_box %p, box %p, flags %#x.\n", 224 iface, pLockedVolume, pBox, Flags); 215 225 216 226 wined3d_mutex_lock(); … … 228 238 HRESULT hr; 229 239 230 TRACE(" (%p) relay %p\n", This, This->wineD3DVolume);240 TRACE("iface %p.\n", iface); 231 241 232 242 wined3d_mutex_lock();
Note:
See TracChangeset
for help on using the changeset viewer.