[3/5] windowscodecs: Implement IWICBitmapScaler::GetResolution.
Vincent Povirk
madewokherd at gmail.com
Wed Jun 27 11:04:27 CDT 2012
-------------- next part --------------
From dd985dee99957d8bb2b56e7d5e1ed699668f382e Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 28 Feb 2012 16:32:31 -0600
Subject: [PATCH 3/8] windowscodecs: Implement
IWICBitmapScaler::GetResolution.
---
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 c17f6dd..900f276 100644
--- a/dlls/windowscodecs/scaler.c
+++ b/dlls/windowscodecs/scaler.c
@@ -129,9 +129,13 @@ static HRESULT WINAPI BitmapScaler_GetPixelFormat(IWICBitmapScaler *iface,
static HRESULT WINAPI BitmapScaler_GetResolution(IWICBitmapScaler *iface,
double *pDpiX, double *pDpiY)
{
- FIXME("(%p,%p,%p): stub\n", iface, pDpiX, pDpiY);
+ BitmapScaler *This = impl_from_IWICBitmapScaler(iface);
+ TRACE("(%p,%p,%p)\n", iface, pDpiX, pDpiY);
- return E_NOTIMPL;
+ if (!This->source)
+ return WINCODEC_ERR_WRONGSTATE;
+
+ return IWICBitmapSource_GetResolution(This->source, pDpiX, pDpiY);
}
static HRESULT WINAPI BitmapScaler_CopyPalette(IWICBitmapScaler *iface,
--
1.7.9.5
More information about the wine-patches
mailing list