ebiten: Refactoring

This commit is contained in:
Hajime Hoshi 2020-06-13 21:21:37 +09:00
parent 40906676e6
commit 137663c0df

View File

@ -489,7 +489,7 @@ func (i *Image) At(x, y int) color.Color {
if i.isDisposed() {
return color.RGBA{}
}
if i.isSubImage() && !image.Pt(x, y).In(i.bounds) {
if !image.Pt(x, y).In(i.Bounds()) {
return color.RGBA{}
}
pix, err := i.buffered.Pixels(x, y, 1, 1)