mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-09 03:37:17 -05:00
Merge pull request #952 from Ziemas/blendfix
Fix draweffect blending selection
This commit is contained in:
commit
0ef943a673
@ -146,8 +146,6 @@ func (s *ebitenSurface) RenderSprite(sprite *d2ui.Sprite) {
|
|||||||
|
|
||||||
s.handleStateEffect(opts)
|
s.handleStateEffect(opts)
|
||||||
|
|
||||||
opts.CompositeMode = ebiten.CompositeModeSourceOver
|
|
||||||
|
|
||||||
sprite.Render(s)
|
sprite.Render(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,8 +159,6 @@ func (s *ebitenSurface) Render(sfc d2interface.Surface) {
|
|||||||
|
|
||||||
s.handleStateEffect(opts)
|
s.handleStateEffect(opts)
|
||||||
|
|
||||||
opts.CompositeMode = ebiten.CompositeModeSourceOver
|
|
||||||
|
|
||||||
s.image.DrawImage(sfc.(*ebitenSurface).image, opts)
|
s.image.DrawImage(sfc.(*ebitenSurface).image, opts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user