On 2 May 2012 23:32, Józef Kucia joseph.kucia@gmail.com wrote:
- if(wic_pixel_formats[i].d3dformat == format)
Missing whitespace.
+HRESULT WINAPI D3DXSaveSurfaceToFileW(LPCWSTR dst_filename, D3DXIMAGE_FILEFORMAT file_format,
"LPCWSTR" -> "const WCHAR *"
- TRACE("(%s, %d, %p, %p, %p)\n",
- wine_dbgstr_w(dst_filename), file_format, src_surface, src_palette, src_rect);
wine_dbgstr_rect().
- memcpy(&wic_pixel_format, pixel_format_guid, sizeof(GUID));
- hr = IWICBitmapFrameEncode_SetPixelFormat(frame, &wic_pixel_format);
- d3d_pixel_format = wic_guid_to_d3dformat(&wic_pixel_format);
What is all this for?
Also, how do you intend to implement D3DXSaveSurfaceToFileInMemory()?