[2/5] windowscodecs: Implement IWICBitmapScaler::GetPixelFormat.
Vincent Povirk
madewokherd at gmail.com
Wed Jun 27 11:03:54 CDT 2012
-------------- next part --------------
From 1c2e36d33ad49261101440218943cd59e9fae449 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 28 Feb 2012 16:31:00 -0600
Subject: [PATCH 2/8] windowscodecs: Implement
IWICBitmapScaler::GetPixelFormat.
---
dlls/windowscodecs/scaler.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/scaler.c b/dlls/windowscodecs/scaler.c
index c3b32e8..c17f6dd 100644
--- a/dlls/windowscodecs/scaler.c
+++ b/dlls/windowscodecs/scaler.c
@@ -117,9 +117,13 @@ static HRESULT WINAPI BitmapScaler_GetSize(IWICBitmapScaler *iface,
static HRESULT WINAPI BitmapScaler_GetPixelFormat(IWICBitmapScaler *iface,
WICPixelFormatGUID *pPixelFormat)
{
- FIXME("(%p,%p): stub\n", iface, pPixelFormat);
+ BitmapScaler *This = impl_from_IWICBitmapScaler(iface);
+ TRACE("(%p,%p)\n", iface, pPixelFormat);
- return E_NOTIMPL;
+ if (!This->source)
+ return WINCODEC_ERR_WRONGSTATE;
+
+ return IWICBitmapSource_GetPixelFormat(This->source, pPixelFormat);
}
static HRESULT WINAPI BitmapScaler_GetResolution(IWICBitmapScaler *iface,
--
1.7.9.5
More information about the wine-patches
mailing list