ebiten: add a comment

This commit is contained in:
Hajime Hoshi 2022-03-05 01:58:44 +09:00
parent 4610505fc5
commit 86698481f6

View File

@ -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) {
// Check the error existence and avoid unnecessary calls.
// TODO: The package ui should have an image struct that treats errors correctly.
if ui.HasError() {
return 0, 0, 0, 0
}