Fixed the DrawFilledRectangle

This commit is contained in:
ThomasBeHappy 2017-07-22 18:49:08 +02:00 committed by GitHub
parent ab7195f119
commit 7f8463455a

View file

@ -325,10 +325,9 @@ namespace Cosmos.System.Graphics
public virtual void DrawFilledRectangle(Pen pen, int x_start, int y_start, int width, int height)
{
for (int i = 0; i != width; i++)
for (int y = y_start; y < y_start + height; y++)
{
DrawLine(pen, x_start, y_start, x_start + height, y_start);
y_start++;
DrawLine(pen, x_start, y, x_start + width - 1, y);
}
}