gdiplus: Forward GdipFillRectangle to GdipFillRectangles.
This commit is contained in:
parent
ef2a8be648
commit
8babdc860a
|
@ -3820,38 +3820,31 @@ GpStatus WINGDIPAPI GdipFillPolygon2I(GpGraphics *graphics, GpBrush *brush,
|
||||||
GpStatus WINGDIPAPI GdipFillRectangle(GpGraphics *graphics, GpBrush *brush,
|
GpStatus WINGDIPAPI GdipFillRectangle(GpGraphics *graphics, GpBrush *brush,
|
||||||
REAL x, REAL y, REAL width, REAL height)
|
REAL x, REAL y, REAL width, REAL height)
|
||||||
{
|
{
|
||||||
GpStatus stat;
|
GpRectF rect;
|
||||||
GpPath *path;
|
|
||||||
|
|
||||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, brush, x, y, width, height);
|
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, brush, x, y, width, height);
|
||||||
|
|
||||||
if(!graphics || !brush)
|
rect.X = x;
|
||||||
return InvalidParameter;
|
rect.Y = y;
|
||||||
|
rect.Width = width;
|
||||||
|
rect.Height = height;
|
||||||
|
|
||||||
if(graphics->busy)
|
return GdipFillRectangles(graphics, brush, &rect, 1);
|
||||||
return ObjectBusy;
|
|
||||||
|
|
||||||
stat = GdipCreatePath(FillModeAlternate, &path);
|
|
||||||
|
|
||||||
if (stat == Ok)
|
|
||||||
{
|
|
||||||
stat = GdipAddPathRectangle(path, x, y, width, height);
|
|
||||||
|
|
||||||
if (stat == Ok)
|
|
||||||
stat = GdipFillPath(graphics, brush, path);
|
|
||||||
|
|
||||||
GdipDeletePath(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
return stat;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
|
GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
|
||||||
INT x, INT y, INT width, INT height)
|
INT x, INT y, INT width, INT height)
|
||||||
{
|
{
|
||||||
|
GpRectF rect;
|
||||||
|
|
||||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, brush, x, y, width, height);
|
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, brush, x, y, width, height);
|
||||||
|
|
||||||
return GdipFillRectangle(graphics, brush, x, y, width, height);
|
rect.X = (REAL)x;
|
||||||
|
rect.Y = (REAL)y;
|
||||||
|
rect.Width = (REAL)width;
|
||||||
|
rect.Height = (REAL)height;
|
||||||
|
|
||||||
|
return GdipFillRectangles(graphics, brush, &rect, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipFillRectangles(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRectF *rects,
|
GpStatus WINGDIPAPI GdipFillRectangles(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRectF *rects,
|
||||||
|
|
Loading…
Reference in New Issue