mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-20 07:27:19 -05:00
Fix draweffect blending selection
The blending mode picked by handleStateEffect was being overriden. CompositeModeSourceOver is the default selection, we do not need to initialise opts with this.
This commit is contained in:
parent
19e3053c0a
commit
31a21b50dd
@ -146,8 +146,6 @@ func (s *ebitenSurface) RenderSprite(sprite *d2ui.Sprite) {
|
||||
|
||||
s.handleStateEffect(opts)
|
||||
|
||||
opts.CompositeMode = ebiten.CompositeModeSourceOver
|
||||
|
||||
sprite.Render(s)
|
||||
}
|
||||
|
||||
@ -161,8 +159,6 @@ func (s *ebitenSurface) Render(sfc d2interface.Surface) {
|
||||
|
||||
s.handleStateEffect(opts)
|
||||
|
||||
opts.CompositeMode = ebiten.CompositeModeSourceOver
|
||||
|
||||
s.image.DrawImage(sfc.(*ebitenSurface).image, opts)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user