2 Sep
2022
2 Sep
'22
5:29 a.m.
Nikolay Sivov (@nsivov) commented about dlls/d2d1/effect.c:
-static void d2d_transform_graph_init(struct d2d_transform_graph *graph) +static HRESULT d2d_transform_graph_init(struct d2d_transform_graph *graph, UINT32 input_count) { + UINT32 i; + graph->ID2D1TransformGraph_iface.lpVtbl = &d2d_transform_graph_vtbl; graph->refcount = 1; + + if (!(graph->input_nodes = calloc(input_count, sizeof(*graph->input_nodes)))) + return E_OUTOFMEMORY; + for (i = 0; i < input_count; ++i) + { + graph->input_nodes[i].effect_input = TRUE; + } + graph->input_count = input_count; + This should probably be integrated with SetInputCount().
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/698#note_7533