Commit 6ab887c0 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

d2d1: Fix ID2D1HwndRenderTarget::Resize() prototype.

parent 230bda70
...@@ -672,17 +672,17 @@ static D2D1_WINDOW_STATE STDMETHODCALLTYPE d2d_hwnd_render_target_CheckWindowSta ...@@ -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; 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); struct d2d_hwnd_render_target *render_target = impl_from_ID2D1HwndRenderTarget(iface);
IDXGISurface1 *dxgi_surface; IDXGISurface1 *dxgi_surface;
HRESULT hr; 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); 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))) DXGI_FORMAT_UNKNOWN, 0)))
{ {
if (FAILED(hr = IDXGISwapChain_GetBuffer(render_target->swapchain, 0, &IID_IDXGISurface1, if (FAILED(hr = IDXGISwapChain_GetBuffer(render_target->swapchain, 0, &IID_IDXGISurface1,
......
...@@ -1148,7 +1148,7 @@ interface ID2D1HwndRenderTarget : ID2D1RenderTarget ...@@ -1148,7 +1148,7 @@ interface ID2D1HwndRenderTarget : ID2D1RenderTarget
{ {
D2D1_WINDOW_STATE CheckWindowState(); D2D1_WINDOW_STATE CheckWindowState();
HRESULT Resize( HRESULT Resize(
[in] const D2D1_SIZE_U size [in] const D2D1_SIZE_U *size
); );
HWND GetHwnd(); HWND GetHwnd();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment