Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Apr 13, 2024
1 parent 3c0ac48 commit 9dc355a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fill.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (b *Buffer) Fill(x, y int, opts ...FillOpt) {
}

if fo.allAreas {
b.fillAllPixel(x, y, x, y, fo)
b.fillAllPixel(x, y, fo)
} else {
b.fillNBPixel(x, y, x, y, 0, fo)
}
Expand Down Expand Up @@ -72,7 +72,7 @@ func (b *Buffer) fillNBPixel(x, y, xs, ys int, whatPrev int, fo fillOptions) {
}

// fillAllPixel - fill all white pixels
func (b *Buffer) fillAllPixel(x, y, xs, ys int, fo fillOptions) {
func (b *Buffer) fillAllPixel(xs, ys int, fo fillOptions) {
for y := 0; y < b.Height; y++ {
for x := 0; x < b.Width; x++ {
if color, ok := b.getFillColor(x, y, xs, ys, fo); ok {
Expand Down

0 comments on commit 9dc355a

Please sign in to comment.