mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ebiten: add a comment
This commit is contained in:
parent
4610505fc5
commit
86698481f6
1
image.go
1
image.go
@ -718,6 +718,7 @@ func (i *Image) RGBA64At(x, y int) color.RGBA64 {
|
|||||||
|
|
||||||
func (i *Image) at(x, y int) (r, g, b, a uint8) {
|
func (i *Image) at(x, y int) (r, g, b, a uint8) {
|
||||||
// Check the error existence and avoid unnecessary calls.
|
// Check the error existence and avoid unnecessary calls.
|
||||||
|
// TODO: The package ui should have an image struct that treats errors correctly.
|
||||||
if ui.HasError() {
|
if ui.HasError() {
|
||||||
return 0, 0, 0, 0
|
return 0, 0, 0, 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user