From 5f04f05cb18d6b8a53057ebf3d732862ae78c25c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 26 Oct 2018 03:29:20 +0900 Subject: [PATCH] graphics: Add comments --- image.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image.go b/image.go index 287d820d6..f4940b84d 100644 --- a/image.go +++ b/image.go @@ -376,6 +376,8 @@ func (i *Image) drawImage(img *Image, options *DrawImageOptions) { ca = body[15] } var vs []float32 + // TODO: This is too tricky: src is a whole image when level == 0, + // or a part of the image when level > 0. Do refactoring. if level == 0 { vs = src.QuadVertices(sx0, sy0, sx1, sy1, a, b, c, d, tx, ty, cr, cg, cb, ca) } else {