Skip to content
Snippets Groups Projects
Commit e9a52a75 authored by Jannis Rieger's avatar Jannis Rieger
Browse files

fix(gfx): rectangle_fill is one pixel to small

parent 90fec21e
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