Changeset 25949 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/swapchain_base.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/wined3d/swapchain_base.c
r23571 r25949 37 37 38 38 /* IDirect3DSwapChain IUnknown parts follow: */ 39 HRESULT WINAPI IWineD3DBaseSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, REFIID riid, LPVOID *ppobj)39 HRESULT WINAPI IWineD3DBaseSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, REFIID riid, void **object) 40 40 { 41 IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;42 TRACE("(%p)->(%s,%p)\n", This, debugstr_guid(riid), ppobj); 43 if (IsEqualGUID(riid, &IID_I Unknown)44 || IsEqualGUID(riid, &IID_IWineD3DBase)45 || IsEqualGUID(riid, &IID_IWineD3DSwapChain)){46 IWineD3DSwapChain_AddRef(iface);47 if(ppobj == NULL){48 ERR("Query interface called but now data allocated\n");49 return E_NOINTERFACE;50 51 *ppobj = This; 52 return WINED3D_OK;53 } 54 *ppobj= NULL;55 41 TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), object); 42 43 if (IsEqualGUID(riid, &IID_IWineD3DSwapChain) 44 || IsEqualGUID(riid, &IID_IWineD3DBase) 45 || IsEqualGUID(riid, &IID_IUnknown)) 46 { 47 IUnknown_AddRef(iface); 48 *object = iface; 49 return S_OK; 50 } 51 52 WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid)); 53 54 *object = NULL; 55 return E_NOINTERFACE; 56 56 } 57 57 … … 131 131 132 132 HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, WINED3DRASTER_STATUS *pRasterStatus) { 133 IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;134 133 static BOOL warned; 135 134 pRasterStatus->InVBlank = TRUE; … … 138 137 if (!warned) 139 138 { 140 FIXME(" (%p) : stub (once)\n", This);139 FIXME("iface %p, raster_status %p stub!\n", iface, pRasterStatus); 141 140 warned = TRUE; 142 141 } … … 149 148 150 149 TRACE("(%p)->(%p): Calling GetAdapterDisplayMode\n", This, pMode); 151 hr = IWineD3D_GetAdapterDisplayMode(This-> wineD3DDevice->wineD3D, This->wineD3DDevice->adapter->num, pMode);150 hr = IWineD3D_GetAdapterDisplayMode(This->device->wined3d, This->device->adapter->ordinal, pMode); 152 151 153 152 TRACE("(%p) : returning w(%d) h(%d) rr(%d) fmt(%u,%s)\n", This, pMode->Width, pMode->Height, pMode->RefreshRate, … … 159 158 IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface; 160 159 161 *ppDevice = (IWineD3DDevice *) This->wineD3DDevice;160 *ppDevice = (IWineD3DDevice *)This->device; 162 161 163 162 /* Note Calling this method will increase the internal reference count
Note:
See TracChangeset
for help on using the changeset viewer.