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

d2d1: Implement d2d_bitmap_GetPixelSize().

parent b7fae529
......@@ -88,10 +88,11 @@ static D2D1_SIZE_F * STDMETHODCALLTYPE d2d_bitmap_GetSize(ID2D1Bitmap *iface, D2
static D2D1_SIZE_U * STDMETHODCALLTYPE d2d_bitmap_GetPixelSize(ID2D1Bitmap *iface, D2D1_SIZE_U *pixel_size)
{
FIXME("iface %p, pixel_size %p stub!\n", iface, pixel_size);
struct d2d_bitmap *bitmap = impl_from_ID2D1Bitmap(iface);
TRACE("iface %p, pixel_size %p.\n", iface, pixel_size);
pixel_size->width = 0;
pixel_size->height = 0;
*pixel_size = bitmap->pixel_size;
return pixel_size;
}
......@@ -158,4 +159,6 @@ void d2d_bitmap_init(struct d2d_bitmap *bitmap, D2D1_SIZE_U size, const void *sr
bitmap->ID2D1Bitmap_iface.lpVtbl = &d2d_bitmap_vtbl;
bitmap->refcount = 1;
bitmap->pixel_size = size;
}
......@@ -152,6 +152,8 @@ struct d2d_bitmap
{
ID2D1Bitmap ID2D1Bitmap_iface;
LONG refcount;
D2D1_SIZE_U pixel_size;
};
void d2d_bitmap_init(struct d2d_bitmap *bitmap, D2D1_SIZE_U size, const void *src_data,
......
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