lib/dxopal/image.rb in dxopal-1.5.0 vs lib/dxopal/image.rb in dxopal-1.5.1
- old
+ new
@@ -183,10 +183,10 @@
return ret
end
# 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`
def compare(x, y, color)
ctx = @ctx