graphics: Add comment

This commit is contained in:
Hajime Hoshi 2016-05-12 22:26:53 +09:00
parent b3d43c185b
commit e0d1e35e81

View File

@ -352,6 +352,7 @@ func NewImage(width, height int, filter Filter) (*Image, error) {
func NewImageFromImage(img image.Image, filter Filter) (*Image, error) { func NewImageFromImage(img image.Image, filter Filter) (*Image, error) {
size := img.Bounds().Size() size := img.Bounds().Size()
w, h := size.X, size.Y w, h := size.X, size.Y
// TODO: Return error when the image is too big!
eimg := &Image{ eimg := &Image{
width: w, width: w,
height: h, height: h,