graphcis: Refactoring

This commit is contained in:
Hajime Hoshi 2018-03-10 19:40:18 +09:00
parent 9c72671232
commit 75049c4048

View File

@ -259,13 +259,11 @@ func (i *Image) DrawImage(img *Image, options *DrawImageOptions) error {
geom = g
}
if img.sharedImagePart != nil {
dx, dy, _, _ := img.sharedImagePart.region()
sx0 += dx
sy0 += dy
sx1 += dx
sy1 += dy
}
dx, dy, _, _ := img.region()
sx0 += dx
sy0 += dy
sx1 += dx
sy1 += dy
mode := opengl.CompositeMode(options.CompositeMode)