mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
graphics: Bug fix: Filter was not used when SourceRect is used
This commit is contained in:
parent
b65a3d372b
commit
b5ee209e0b
1
image.go
1
image.go
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user