Vincent Povirk : windowscodecs: Implement IWICBitmapScaler::GetResolution.
Alexandre Julliard
julliard at winehq.org
Thu Jun 28 13:55:18 CDT 2012
Module: wine
Branch: master
Commit: e4f8ab605e24df0bdd79bb1d2fa8f67145cbe4c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e4f8ab605e24df0bdd79bb1d2fa8f67145cbe4c0
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Tue Feb 28 16:32:31 2012 -0600
windowscodecs: Implement IWICBitmapScaler::GetResolution.
---
dlls/windowscodecs/scaler.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/scaler.c b/dlls/windowscodecs/scaler.c
index 2289a9d..511968c 100644
--- a/dlls/windowscodecs/scaler.c
+++ b/dlls/windowscodecs/scaler.c
@@ -135,9 +135,16 @@ 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 (!pDpiX || !pDpiY)
+ return E_INVALIDARG;
+
+ if (!This->source)
+ return WINCODEC_ERR_WRONGSTATE;
+
+ return IWICBitmapSource_GetResolution(This->source, pDpiX, pDpiY);
}
static HRESULT WINAPI BitmapScaler_CopyPalette(IWICBitmapScaler *iface,
More information about the wine-cvs
mailing list