gdiplus: Also get a DC for drawing WMF images.
This commit is contained in:
parent
3eb6045325
commit
6214e5b92c
|
@ -536,7 +536,9 @@ GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoints(GpGraphics *graphics,
|
|||
memcpy(real_metafile->playback_points, destPoints, sizeof(PointF) * 3);
|
||||
stat = GdipTransformPoints(graphics, CoordinateSpaceDevice, CoordinateSpaceWorld, real_metafile->playback_points, 3);
|
||||
|
||||
if (stat == Ok && metafile->metafile_type == MetafileTypeEmf)
|
||||
if (stat == Ok && (metafile->metafile_type == MetafileTypeEmf ||
|
||||
metafile->metafile_type == MetafileTypeWmfPlaceable ||
|
||||
metafile->metafile_type == MetafileTypeWmf))
|
||||
stat = METAFILE_PlaybackGetDC((GpMetafile*)metafile);
|
||||
|
||||
if (stat == Ok)
|
||||
|
|
Loading…
Reference in New Issue