mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/restorable: bug fix: the parameter mask was not passed correctly
This commit is contained in:
parent
fbcbd2a001
commit
dfc9eeaaec
@ -304,7 +304,7 @@ func (i *Image) ReplacePixels(pixels []byte, mask []byte, x, y, width, height in
|
||||
theImages.makeStaleIfDependingOn(i)
|
||||
|
||||
if pixels != nil {
|
||||
i.image.ReplacePixels(pixels, nil, x, y, width, height)
|
||||
i.image.ReplacePixels(pixels, mask, x, y, width, height)
|
||||
} else {
|
||||
// TODO: When pixels == nil, we don't have to care the pixel state there. In such cases, the image
|
||||
// accepts only ReplacePixels and not Fill or DrawTriangles.
|
||||
|
Loading…
Reference in New Issue
Block a user