Commit 9a6108cf authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

windowscodecs: Implement DdsFrameDecode_GetSize().

parent 870b08b7
......@@ -299,9 +299,14 @@ static ULONG WINAPI DdsFrameDecode_Release(IWICBitmapFrameDecode *iface)
static HRESULT WINAPI DdsFrameDecode_GetSize(IWICBitmapFrameDecode *iface,
UINT *puiWidth, UINT *puiHeight)
{
FIXME("(%p,%p,%p): stub.\n", iface, puiWidth, puiHeight);
DdsFrameDecode *This = impl_from_IWICBitmapFrameDecode(iface);
return E_NOTIMPL;
*puiWidth = This->width;
*puiHeight = This->height;
TRACE("(%p) -> (%d,%d)\n", iface, *puiWidth, *puiHeight);
return S_OK;
}
static HRESULT WINAPI DdsFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface,
......
......@@ -383,7 +383,7 @@ static void test_dds_decoder_frame_size(IWICBitmapDecoder *decoder, IWICBitmapFr
if (hr != S_OK) goto end;
hr = IWICBitmapFrameDecode_GetSize(frame_decode, &width, &height);
todo_wine ok (hr == S_OK, "%d: GetSize failed for frame %d, hr=%x\n", i, frame_index, hr);
ok (hr == S_OK, "%d: GetSize failed for frame %d, hr=%x\n", i, frame_index, hr);
if (hr != S_OK) goto end;
depth = params.Depth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment