gdiplus/metafile: Support serialized brushes in EmfPlusFillRects.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6cde9952f2
commit
57ca6b90bb
|
@ -1852,8 +1852,12 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
|
|||
}
|
||||
else
|
||||
{
|
||||
FIXME("brush deserialization not implemented\n");
|
||||
return NotImplemented;
|
||||
if (record->BrushID >= EmfPlusObjectTableSize ||
|
||||
real_metafile->objtable[record->BrushID].type != ObjectTypeBrush)
|
||||
return InvalidParameter;
|
||||
|
||||
brush = real_metafile->objtable[record->BrushID].u.brush;
|
||||
stat = Ok;
|
||||
}
|
||||
|
||||
if (stat == Ok)
|
||||
|
|
Loading…
Reference in New Issue