gdiplus: Support GdipSetCompositingMode in metafiles.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-07-11 10:59:13 +02:00 committed by Alexandre Julliard
parent 910975a944
commit 1cecd47985
1 changed files with 13 additions and 0 deletions

View File

@ -5808,6 +5808,19 @@ GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics,
if(graphics->busy)
return ObjectBusy;
if(graphics->compmode == mode)
return Ok;
if(graphics->image && graphics->image->type == ImageTypeMetafile)
{
GpStatus stat;
stat = METAFILE_AddSimpleProperty((GpMetafile*)graphics->image,
EmfPlusRecordTypeSetCompositingMode, mode);
if(stat != Ok)
return stat;
}
graphics->compmode = mode;
return Ok;