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 geom = g
} }
if img.sharedImagePart != nil { dx, dy, _, _ := img.region()
dx, dy, _, _ := img.sharedImagePart.region()
sx0 += dx sx0 += dx
sy0 += dy sy0 += dy
sx1 += dx sx1 += dx
sy1 += dy sy1 += dy
}
mode := opengl.CompositeMode(options.CompositeMode) mode := opengl.CompositeMode(options.CompositeMode)