mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-03 06:40:23 +00:00
Fixed the DrawFilledRectangle
This commit is contained in:
parent
ab7195f119
commit
7f8463455a
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue