Re: [PATCH v8 0/6] MR3288: gdiplus: Clip polygons before drawing them
15 Dec
2023
15 Dec
'23
4:15 p.m.
Esme Povirk (@madewokherd) commented about dlls/gdiplus/graphicspath.c:
memset(types + i, 0, ((path->pathdata.Count + 3) & ~3) - path->pathdata.Count); return size; } + +GpStatus clip_path(GpGraphics *graphics, GpPath *in, GpPath *out) +{ + RectF rect; + int i; + path_list_node_t *list, *pos = NULL; + + get_graphics_device_bounds(graphics, &rect); + + for (i = 1; i < in->pathdata.Count - 1; i++) + { + RectF bounds;
I think it would be simpler to change `rect` to left/top/right/bottom values. I don't think this `bounds` variable should be needed at all. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3288#note_56105
735
Age (days ago)
735
Last active (days ago)
0 comments
1 participants
participants (1)
-
Esme Povirk (@madewokherd)