Module: wine Branch: master Commit: 168dd496cbb370e8e58936e279e4d7837d6580a8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=168dd496cbb370e8e58936e279...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Apr 23 20:23:26 2015 +0200
d2d1: Implement d2d_bitmap_brush_GetBitmap().
---
dlls/d2d1/brush.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/d2d1/brush.c b/dlls/d2d1/brush.c index f2451e6..9e45e1a 100644 --- a/dlls/d2d1/brush.c +++ b/dlls/d2d1/brush.c @@ -596,7 +596,12 @@ static D2D1_BITMAP_INTERPOLATION_MODE STDMETHODCALLTYPE d2d_bitmap_brush_GetInte
static void STDMETHODCALLTYPE d2d_bitmap_brush_GetBitmap(ID2D1BitmapBrush *iface, ID2D1Bitmap **bitmap) { - FIXME("iface %p, bitmap %p stub!\n", iface, bitmap); + struct d2d_brush *brush = impl_from_ID2D1BitmapBrush(iface); + + TRACE("iface %p, bitmap %p.\n", iface, bitmap); + + if ((*bitmap = &brush->u.bitmap.bitmap->ID2D1Bitmap_iface)) + ID2D1Bitmap_AddRef(*bitmap); }
static const struct ID2D1BitmapBrushVtbl d2d_bitmap_brush_vtbl =