mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 06:06:13 +00:00
d2d1: Implement d2d_device_context_ID2D1DeviceContext_CreateBitmap().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1987c1fba4
commit
9775ed22aa
1 changed files with 9 additions and 2 deletions
|
@ -1783,10 +1783,17 @@ static HRESULT STDMETHODCALLTYPE d2d_device_context_ID2D1DeviceContext_CreateBit
|
|||
D2D1_SIZE_U size, const void *src_data, UINT32 pitch,
|
||||
const D2D1_BITMAP_PROPERTIES1 *desc, ID2D1Bitmap1 **bitmap)
|
||||
{
|
||||
FIXME("iface %p, size {%u, %u}, src_data %p, pitch %u, desc %p, bitmap %p stub!\n",
|
||||
struct d2d_device_context *context = impl_from_ID2D1DeviceContext(iface);
|
||||
struct d2d_bitmap *object;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("iface %p, size {%u, %u}, src_data %p, pitch %u, desc %p, bitmap %p.\n",
|
||||
iface, size.width, size.height, src_data, pitch, desc, bitmap);
|
||||
|
||||
return E_NOTIMPL;
|
||||
if (SUCCEEDED(hr = d2d_bitmap_create(context, size, src_data, pitch, desc, &object)))
|
||||
*bitmap = &object->ID2D1Bitmap1_iface;
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d2d_device_context_ID2D1DeviceContext_CreateBitmapFromWicBitmap(
|
||||
|
|
Loading…
Reference in a new issue