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:
parent
910975a944
commit
1cecd47985
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue