graphics: Add comments

This commit is contained in:
Hajime Hoshi 2018-10-26 03:29:20 +09:00
parent d3bd858aba
commit 5f04f05cb1

View File

@ -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 {