windowscodecs: Implement DdsFrameDecode_GetSize().

Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Esme Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ziqing Hui 2020-05-28 13:09:09 +08:00 committed by Alexandre Julliard
parent 870b08b7fd
commit 9a6108cf43
2 changed files with 8 additions and 3 deletions

View File

@ -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,

View File

@ -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;