Changeset 21731 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d8/volume.c
- Timestamp:
- Jul 21, 2009 9:16:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d8/volume.c
r19678 r21731 164 164 TRACE("(%p) Relay\n", This); 165 165 166 /* As d3d8 and d3d9 structures differ, pass in ptrs to where data needs to go */167 wined3ddesc.Format = (WINED3DFORMAT *)&pDesc->Format;168 wined3ddesc.Type = (WINED3DRESOURCETYPE *)&pDesc->Type;169 wined3ddesc.Usage = &pDesc->Usage;170 wined3ddesc.Pool = (WINED3DPOOL *) &pDesc->Pool;171 wined3ddesc.Size = &pDesc->Size;172 wined3ddesc.Width = &pDesc->Width;173 wined3ddesc.Height = &pDesc->Height;174 wined3ddesc.Depth = &pDesc->Depth;175 176 166 EnterCriticalSection(&d3d8_cs); 177 167 hr = IWineD3DVolume_GetDesc(This->wineD3DVolume, &wined3ddesc); 178 168 LeaveCriticalSection(&d3d8_cs); 179 169 180 if (SUCCEEDED(hr)) pDesc->Format = d3dformat_from_wined3dformat(pDesc->Format); 170 if (SUCCEEDED(hr)) 171 { 172 pDesc->Format = d3dformat_from_wined3dformat(wined3ddesc.Format); 173 pDesc->Type = wined3ddesc.Type; 174 pDesc->Usage = wined3ddesc.Usage; 175 pDesc->Pool = wined3ddesc.Pool; 176 pDesc->Size = wined3ddesc.Size; 177 pDesc->Width = wined3ddesc.Width; 178 pDesc->Height = wined3ddesc.Height; 179 pDesc->Depth = wined3ddesc.Depth; 180 } 181 181 182 182 return hr;
Note:
See TracChangeset
for help on using the changeset viewer.