Commit d0f23611 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus/metafile: Implement EmfPlusRecordTypeSetClipPath playback.

parent bf9305f6
......@@ -2362,6 +2362,27 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
return stat;
}
case EmfPlusRecordTypeSetClipPath:
{
CombineMode mode = (flags >> 8) & 0xf;
BYTE pathid = flags & 0xff;
GpRegion *region;
if (dataSize != 0)
return InvalidParameter;
if (pathid >= EmfPlusObjectTableSize || real_metafile->objtable[pathid].type != ObjectTypePath)
return InvalidParameter;
stat = GdipCreateRegionPath(real_metafile->objtable[pathid].u.path, &region);
if (stat == Ok)
{
stat = metafile_set_clip_region(real_metafile, region, mode);
GdipDeleteRegion(region);
}
return stat;
}
case EmfPlusRecordTypeSetPageTransform:
{
EmfPlusSetPageTransform *record = (EmfPlusSetPageTransform*)header;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment