Esme Povirk (@madewokherd) commented about dlls/gdiplus/tests/metafile.c:
+ stat = GdipDisposeImage((GpImage *)metafile); + expect(Ok, stat); + + /* Play back */ + /* Create graphics from a window DC for this test because bitmap DC uses + * SOFTWARE_GdipDrawPath(), which doesn't support drawing line caps */ + hwnd = CreateWindowA("static", NULL, WS_POPUP, 0, 0, 100, 100, NULL, NULL, NULL, 0); + hdc = GetDC(0); + stat = GdipCreateFromHDC(hdc, &graphics); + expect(Ok, stat); + + play_metafile(clone_metafile, graphics, pen_bitmap_records, "pen playback", dst_points, &frame, UnitPixel); + + color = GetPixel(hdc, 10, 10); + todo_wine + flaky /* Win10 + */ Should we be introducing new flaky tests? What's causing this to fail?
GDI codepath should be used if you make an HBITMAP without an alpha channel, so not 32-bit. Maybe that would be more reliable? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2870#note_33419