diff --git a/lib/gfx/gfx.c b/lib/gfx/gfx.c
index 5af5bbb360248650fc40cb1ec445d9091c90575d..49b8d3a8d618bf49c1ed849f49c97316b9210496 100644
--- a/lib/gfx/gfx.c
+++ b/lib/gfx/gfx.c
@@ -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);
 	}
 }