Commit 1cecd479 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdiplus: Support GdipSetCompositingMode in metafiles.

parent 910975a9
...@@ -5808,6 +5808,19 @@ GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics, ...@@ -5808,6 +5808,19 @@ GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics,
if(graphics->busy) if(graphics->busy)
return ObjectBusy; 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; graphics->compmode = mode;
return Ok; return Ok;
......
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