gdiplus: Implement GdipEnumerateMetafileSrcRectDestRectI.

Signed-off-by: Dongwan Kim <kdw6485@gmail.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dongwan Kim 2021-05-13 12:09:27 +09:00 committed by Alexandre Julliard
parent 8a2f7c731f
commit aa54278250
2 changed files with 20 additions and 1 deletions

View file

@ -201,7 +201,7 @@
201 stdcall GdipEnumerateMetafileSrcRectDestPoints(ptr ptr ptr long ptr long ptr ptr ptr)
202 stub GdipEnumerateMetafileSrcRectDestPointsI
203 stdcall GdipEnumerateMetafileSrcRectDestRect(ptr ptr ptr ptr long ptr ptr ptr)
204 stub GdipEnumerateMetafileSrcRectDestRectI
204 stdcall GdipEnumerateMetafileSrcRectDestRectI(ptr ptr ptr ptr long ptr ptr ptr)
205 stdcall GdipFillClosedCurve2(ptr ptr ptr long float long)
206 stdcall GdipFillClosedCurve2I(ptr ptr ptr long float long)
207 stdcall GdipFillClosedCurve(ptr ptr ptr long)

View file

@ -3666,6 +3666,25 @@ GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestRect( GpGraphics *graphics,
return GdipEnumerateMetafileSrcRectDestPoints(graphics, metafile, points, 3,
src, srcUnit, callback, cb_data, attrs);
}
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestRectI( GpGraphics * graphics,
GDIPCONST GpMetafile *metafile, GDIPCONST Rect *destRect,
GDIPCONST Rect *srcRect, Unit srcUnit, EnumerateMetafileProc callback,
VOID *cb_data, GDIPCONST GpImageAttributes *attrs )
{
GpRectF destRectF, srcRectF;
destRectF.X = destRect->X;
destRectF.Y = destRect->Y;
destRectF.Width = destRect->Width;
destRectF.Height = destRect->Height;
srcRectF.X = srcRect->X;
srcRectF.Y = srcRect->Y;
srcRectF.Width = srcRect->Width;
srcRectF.Height = srcRect->Height;
return GdipEnumerateMetafileSrcRectDestRect( graphics, metafile, &destRectF, &srcRectF, srcUnit, callback, cb_data, attrs);
}
GpStatus WINGDIPAPI GdipEnumerateMetafileDestRect(GpGraphics *graphics,
GDIPCONST GpMetafile *metafile, GDIPCONST GpRectF *dest,