From 6ab887c057df4a11b2be8aa9eff209a2cd6b144c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 25 Jan 2017 00:47:37 +0300 Subject: [PATCH] d2d1: Fix ID2D1HwndRenderTarget::Resize() prototype. Signed-off-by: Nikolay Sivov Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d2d1/hwnd_render_target.c | 6 +++--- include/d2d1.idl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/d2d1/hwnd_render_target.c b/dlls/d2d1/hwnd_render_target.c index e9092b6098..4f68afdfe6 100644 --- a/dlls/d2d1/hwnd_render_target.c +++ b/dlls/d2d1/hwnd_render_target.c @@ -672,17 +672,17 @@ static D2D1_WINDOW_STATE STDMETHODCALLTYPE d2d_hwnd_render_target_CheckWindowSta DXGI_STATUS_OCCLUDED ? D2D1_WINDOW_STATE_OCCLUDED : D2D1_WINDOW_STATE_NONE; } -static HRESULT STDMETHODCALLTYPE d2d_hwnd_render_target_Resize(ID2D1HwndRenderTarget *iface, const D2D1_SIZE_U size) +static HRESULT STDMETHODCALLTYPE d2d_hwnd_render_target_Resize(ID2D1HwndRenderTarget *iface, const D2D1_SIZE_U *size) { struct d2d_hwnd_render_target *render_target = impl_from_ID2D1HwndRenderTarget(iface); IDXGISurface1 *dxgi_surface; HRESULT hr; - TRACE("iface %p, width %u, height %u.\n", iface, size.width, size.height); + TRACE("iface %p, width %u, height %u.\n", iface, size->width, size->height); d2d_d3d_render_target_create_rtv(render_target->dxgi_target, NULL); - if (SUCCEEDED(hr = IDXGISwapChain_ResizeBuffers(render_target->swapchain, 1, size.width, size.height, + if (SUCCEEDED(hr = IDXGISwapChain_ResizeBuffers(render_target->swapchain, 1, size->width, size->height, DXGI_FORMAT_UNKNOWN, 0))) { if (FAILED(hr = IDXGISwapChain_GetBuffer(render_target->swapchain, 0, &IID_IDXGISurface1, diff --git a/include/d2d1.idl b/include/d2d1.idl index 7a903ca812..4a62f7c5e1 100644 --- a/include/d2d1.idl +++ b/include/d2d1.idl @@ -1148,7 +1148,7 @@ interface ID2D1HwndRenderTarget : ID2D1RenderTarget { D2D1_WINDOW_STATE CheckWindowState(); HRESULT Resize( - [in] const D2D1_SIZE_U size + [in] const D2D1_SIZE_U *size ); HWND GetHwnd(); }