graphics: Bug fix: Filter was not used when SourceRect is used

This commit is contained in:
Hajime Hoshi 2019-01-24 14:22:53 +09:00
parent b65a3d372b
commit b5ee209e0b

View File

@ -279,6 +279,7 @@ func (i *Image) drawImage(img *Image, options *DrawImageOptions) {
op := &DrawImageOptions{ op := &DrawImageOptions{
ColorM: options.ColorM, ColorM: options.ColorM,
CompositeMode: options.CompositeMode, CompositeMode: options.CompositeMode,
Filter: options.Filter,
} }
op.GeoM.Scale( op.GeoM.Scale(
float64(dx1-dx0)/float64(sx1-sx0), float64(dx1-dx0)/float64(sx1-sx0),