Skip to content
Snippets Groups Projects
Commit 05ef8319 authored by rahix's avatar rahix
Browse files

Merge 'rectangle_fill is one pixel to small'

See merge request !271
parents 2ef00eb0 e9a52a75
No related branches found
No related tags found
No related merge requests found
......@@ -174,8 +174,8 @@ void gfx_rectangle(
void gfx_rectangle_fill(
struct gfx_region *reg, int x, int y, int w, int h, Color c
) {
for (int y_ = y; y_ < y + h; y_++) {
for (int x_ = x; x_ < x + w; x_++)
for (int y_ = y; y_ <= y + h; y_++) {
for (int x_ = x; x_ <= x + w; x_++)
gfx_setpixel(reg, x_, y_, c);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment