Commit e9a52a75 authored by Jannis Rieger's avatar Jannis Rieger
Browse files

fix(gfx): rectangle_fill is one pixel to small

parent 90fec21e
Pipeline #3602 passed with stages
in 1 minute and 3 seconds
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment