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 card10/firmware!271
parents 2ef00eb0 e9a52a75
No related branches found
No related tags found
1 merge request!271fix(gfx): rectangle_fill is one pixel to small
Pipeline #3625 passed
...@@ -174,8 +174,8 @@ void gfx_rectangle( ...@@ -174,8 +174,8 @@ void gfx_rectangle(
void gfx_rectangle_fill( void gfx_rectangle_fill(
struct gfx_region *reg, int x, int y, int w, int h, Color c struct gfx_region *reg, int x, int y, int w, int h, Color c
) { ) {
for (int y_ = y; y_ < y + h; y_++) { for (int y_ = y; y_ <= y + h; y_++) {
for (int x_ = x; x_ < x + w; x_++) for (int x_ = x; x_ <= x + w; x_++)
gfx_setpixel(reg, x_, y_, c); 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