mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-25 02:12:03 +01:00
ebiten: Refactoring
This commit is contained in:
parent
40906676e6
commit
137663c0df
2
image.go
2
image.go
@ -489,7 +489,7 @@ func (i *Image) At(x, y int) color.Color {
|
|||||||
if i.isDisposed() {
|
if i.isDisposed() {
|
||||||
return color.RGBA{}
|
return color.RGBA{}
|
||||||
}
|
}
|
||||||
if i.isSubImage() && !image.Pt(x, y).In(i.bounds) {
|
if !image.Pt(x, y).In(i.Bounds()) {
|
||||||
return color.RGBA{}
|
return color.RGBA{}
|
||||||
}
|
}
|
||||||
pix, err := i.buffered.Pixels(x, y, 1, 1)
|
pix, err := i.buffered.Pixels(x, y, 1, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user