mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
graphics: At doesn't have to discard pending pixels
This commit is contained in:
parent
4c90674e17
commit
2d2da09b85
2
image.go
2
image.go
@ -391,7 +391,7 @@ func (i *Image) At(x, y int) color.Color {
|
|||||||
return color.RGBA{}
|
return color.RGBA{}
|
||||||
}
|
}
|
||||||
// TODO: Use pending pixels
|
// TODO: Use pending pixels
|
||||||
i.resolvePendingPixels(false)
|
i.resolvePendingPixels(true)
|
||||||
r, g, b, a := i.mipmap.at(x, y)
|
r, g, b, a := i.mipmap.at(x, y)
|
||||||
return color.RGBA{r, g, b, a}
|
return color.RGBA{r, g, b, a}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user