[3/4] gdiplus: Load EMF images directly instead of through olepicture.

Dmitry Timoshkov dmitry at baikal.ru
Tue Aug 16 22:58:15 CDT 2016


Vincent Povirk <madewokherd at gmail.com> wrote:

> @@ -4721,7 +4767,7 @@ static const struct image_codec codecs[NUM_CODECS] = {
>              /* SigMask */            emf_sig_mask,
>          },
>          NULL,
> -        decode_image_olepicture_metafile,
> +        decode_image_emf,
>          NULL
>      },

This patch is very incomplete, and probably won't pass the 'make test'.
wine-staging contains a pretty full and well tested patch that reimplements
metafile loading in gdiplus using gdi32 APis:
https://github.com/wine-compholio/wine-staging/blob/master/patches/oleaut32-OLEPictureImpl_SaveAsFile/0001-gdiplus-Reimplement-metafile-loading-using-gdi32-ins.patch
it should be possible to either use it directly or as a base for your work.
There are some other related patches in staging that touch the metafile
loading in gdiplus.

-- 
Dmitry.



More information about the wine-devel mailing list