d2d1: Implement d2d_bitmap_GetPixelFormat().

This commit is contained in:
Henri Verbeet 2015-07-29 11:36:19 +02:00 committed by Alexandre Julliard
parent 1b3574ebc0
commit a2f41ed5b6
2 changed files with 6 additions and 3 deletions

View File

@ -103,10 +103,11 @@ static D2D1_SIZE_U * STDMETHODCALLTYPE d2d_bitmap_GetPixelSize(ID2D1Bitmap *ifac
static D2D1_PIXEL_FORMAT * STDMETHODCALLTYPE d2d_bitmap_GetPixelFormat(ID2D1Bitmap *iface, D2D1_PIXEL_FORMAT *format)
{
FIXME("iface %p stub!\n", iface);
struct d2d_bitmap *bitmap = impl_from_ID2D1Bitmap(iface);
format->format = DXGI_FORMAT_UNKNOWN;
format->alphaMode = D2D1_ALPHA_MODE_UNKNOWN;
TRACE("iface %p, format %p.\n", iface, format);
*format = bitmap->format;
return format;
}
@ -242,6 +243,7 @@ HRESULT d2d_bitmap_init(struct d2d_bitmap *bitmap, struct d2d_d3d_render_target
}
bitmap->pixel_size = size;
bitmap->format = desc->pixelFormat;
bitmap->dpi_x = desc->dpiX;
bitmap->dpi_y = desc->dpiY;

View File

@ -184,6 +184,7 @@ struct d2d_bitmap
ID3D10ShaderResourceView *view;
D2D1_SIZE_U pixel_size;
D2D1_PIXEL_FORMAT format;
float dpi_x;
float dpi_y;
};