aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--internal/term/draw.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/term/draw.go b/internal/term/draw.go
index 2ded6b3..b86b127 100644
--- a/internal/term/draw.go
+++ b/internal/term/draw.go
@@ -17,9 +17,9 @@ func init() {
}
func DrawSquare(scr *Screen, xOffset, yOffset, w, h int, style Style) {
- for dx := 0; dx < w; dx++ {
+ for dx := range w {
x := xOffset + dx
- for dy := 0; dy < h; dy++ {
+ for dy := range h {
y := yOffset + dy
scr.scr.SetContent(x, y, ' ', nil, tcell.Style(style))
}