[resend PATCH 2/4] gdiplus/metafile: Implement playback for EmfPlusRecordTypeDrawPath records
Nikolay Sivov
nsivov at codeweavers.com
Thu Oct 19 16:45:39 CDT 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/gdiplus/metafile.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/dlls/gdiplus/metafile.c b/dlls/gdiplus/metafile.c
index 6c18632a8b..f18411ba8a 100644
--- a/dlls/gdiplus/metafile.c
+++ b/dlls/gdiplus/metafile.c
@@ -2547,6 +2547,24 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
GdipDeleteBrush((GpBrush *)solidfill);
return stat;
}
+ case EmfPlusRecordTypeDrawPath:
+ {
+ EmfPlusDrawPath *draw = (EmfPlusDrawPath *)header;
+ BYTE path = flags & 0xff;
+
+ if (dataSize != sizeof(draw->PenId))
+ return InvalidParameter;
+
+ if (path >= EmfPlusObjectTableSize || draw->PenId >= EmfPlusObjectTableSize)
+ return InvalidParameter;
+
+ if (real_metafile->objtable[path].type != ObjectTypePath ||
+ real_metafile->objtable[draw->PenId].type != ObjectTypePen)
+ return InvalidParameter;
+
+ return GdipDrawPath(real_metafile->playback_graphics, real_metafile->objtable[draw->PenId].u.pen,
+ real_metafile->objtable[path].u.path);
+ }
default:
FIXME("Not implemented for record type %x\n", recordType);
return NotImplemented;
--
2.14.2
More information about the wine-patches
mailing list