Nikolay Sivov (@nsivov) commented about dlls/d2d1/device.c:
+static HRESULT WINAPI d2d_device_CreateDeviceContext(ID2D1Device1 *iface, D2D1_DEVICE_CONTEXT_OPTIONS options, + ID2D1DeviceContext **context) +{ + ID2D1DeviceContext1 *context1 = NULL; + HRESULT hr; + + TRACE("iface %p, options %#x, context %p.\n", iface, options, context); + + if (FAILED(hr = d2d_device_CreateDeviceContext1(iface, options, &context1))) { + return hr; + } + + *context = (ID2D1DeviceContext *)context1; + + return S_OK; +} Let's split this up, first add what's necessary to extend to ID2D1Device1, and then implement new CreateDeviceContext1 with a separate commit.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1183#note_12432