Skip to content

Commit

Permalink
fix #35: Image#[]= was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed Jan 31, 2020
1 parent 33f62fa commit d774442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# HEAD

- fix: Image#[]= was broken since 1.4.0 (#35)

## v1.5.0 (2020-01-31)

- feat: Better error msg (#29)
Expand Down
2 changes: 1 addition & 1 deletion lib/dxopal/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def [](x, y)

# Put a pixel on this image
def []=(x, y, color)
box_fill(x, y, x, y, color)
box_fill(x, y, x+1, y+1, color)
end

# Return true if the pixel at `(x, y)` has the `color`
Expand Down

0 comments on commit d774442

Please sign in to comment.