windowscodecs: Simplify some IMILBitmapScaler forwarders.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b4035288b7
commit
6ebc9dd42f
@ -416,12 +416,7 @@ static HRESULT WINAPI IMILBitmapScaler_GetSize(IMILBitmapScaler *iface,
|
|||||||
UINT *width, UINT *height)
|
UINT *width, UINT *height)
|
||||||
{
|
{
|
||||||
BitmapScaler *This = impl_from_IMILBitmapScaler(iface);
|
BitmapScaler *This = impl_from_IMILBitmapScaler(iface);
|
||||||
|
|
||||||
TRACE("(%p,%p,%p)\n", iface, width, height);
|
TRACE("(%p,%p,%p)\n", iface, width, height);
|
||||||
|
|
||||||
if (!This->source)
|
|
||||||
return WINCODEC_ERR_NOTINITIALIZED;
|
|
||||||
|
|
||||||
return IWICBitmapScaler_GetSize(&This->IWICBitmapScaler_iface, width, height);
|
return IWICBitmapScaler_GetSize(&This->IWICBitmapScaler_iface, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -452,12 +447,7 @@ static HRESULT WINAPI IMILBitmapScaler_GetResolution(IMILBitmapScaler *iface,
|
|||||||
double *dpix, double *dpiy)
|
double *dpix, double *dpiy)
|
||||||
{
|
{
|
||||||
BitmapScaler *This = impl_from_IMILBitmapScaler(iface);
|
BitmapScaler *This = impl_from_IMILBitmapScaler(iface);
|
||||||
|
|
||||||
TRACE("(%p,%p,%p)\n", iface, dpix, dpiy);
|
TRACE("(%p,%p,%p)\n", iface, dpix, dpiy);
|
||||||
|
|
||||||
if (!This->source)
|
|
||||||
return WINCODEC_ERR_NOTINITIALIZED;
|
|
||||||
|
|
||||||
return IWICBitmapScaler_GetResolution(&This->IWICBitmapScaler_iface, dpix, dpiy);
|
return IWICBitmapScaler_GetResolution(&This->IWICBitmapScaler_iface, dpix, dpiy);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -478,12 +468,7 @@ static HRESULT WINAPI IMILBitmapScaler_CopyPixels(IMILBitmapScaler *iface,
|
|||||||
const WICRect *rc, UINT stride, UINT size, BYTE *buffer)
|
const WICRect *rc, UINT stride, UINT size, BYTE *buffer)
|
||||||
{
|
{
|
||||||
BitmapScaler *This = impl_from_IMILBitmapScaler(iface);
|
BitmapScaler *This = impl_from_IMILBitmapScaler(iface);
|
||||||
|
|
||||||
TRACE("(%p,%p,%u,%u,%p)\n", iface, rc, stride, size, buffer);
|
TRACE("(%p,%p,%u,%u,%p)\n", iface, rc, stride, size, buffer);
|
||||||
|
|
||||||
if (!This->source)
|
|
||||||
return WINCODEC_ERR_NOTINITIALIZED;
|
|
||||||
|
|
||||||
return IWICBitmapScaler_CopyPixels(&This->IWICBitmapScaler_iface, rc, stride, size, buffer);
|
return IWICBitmapScaler_CopyPixels(&This->IWICBitmapScaler_iface, rc, stride, size, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user