[PATCH 1/4] gdiplus/tests: Add metafile playback test for EMR_RESTOREDC.

Jeff Smith whydoubt at gmail.com
Mon Jun 29 19:49:50 CDT 2020


> +static void test_restoredc(void)
> +{
> +    static const GpPointF dst_points[3] = {{0.0,0.0},{100.0,0.0},{0.0,100.0}};
> +    static const GpRectF frame = {0.0, 0.0, 100.0, 100.0};
> +    static const WCHAR description[] = {'w','i','n','e','t','e','s','t',0};

As GDI+ is being built as a PE, it should be fine to remove 'description' ...

> +    stat = GdipRecordMetafile(hdc, EmfTypeEmfOnly, &frame, MetafileFrameUnitPixel,
> +        description, &metafile);

and replace it here with L"winetest" (unless Esme has an objection).



More information about the wine-devel mailing list