Commit a4bcae0b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Implement d2d_d3d_render_target_GetPixelFormat().

parent 3b400cad
......@@ -79,6 +79,7 @@ struct d2d_d3d_render_target
D2D1_DRAWING_STATE_DESCRIPTION drawing_state;
IDWriteRenderingParams *text_rendering_params;
D2D1_PIXEL_FORMAT format;
D2D1_SIZE_U pixel_size;
struct d2d_clip_stack clip_stack;
float dpi_x;
......
......@@ -1182,10 +1182,11 @@ static HRESULT STDMETHODCALLTYPE d2d_d3d_render_target_EndDraw(ID2D1RenderTarget
static D2D1_PIXEL_FORMAT * STDMETHODCALLTYPE d2d_d3d_render_target_GetPixelFormat(ID2D1RenderTarget *iface,
D2D1_PIXEL_FORMAT *format)
{
FIXME("iface %p, format %p stub!\n", iface, format);
struct d2d_d3d_render_target *render_target = impl_from_ID2D1RenderTarget(iface);
TRACE("iface %p, format %p.\n", iface, format);
format->format = DXGI_FORMAT_UNKNOWN;
format->alphaMode = D2D1_ALPHA_MODE_UNKNOWN;
*format = render_target->format;
return format;
}
......@@ -1784,6 +1785,7 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
goto err;
}
render_target->format = desc->pixelFormat;
render_target->pixel_size.width = surface_desc.Width;
render_target->pixel_size.height = surface_desc.Height;
render_target->drawing_state.transform = identity;
......
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