mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-06 16:47:47 -05:00
set compositing on debug print so text bg is transparent (#578)
This commit is contained in:
parent
7b60882ba3
commit
8577dfc3aa
@ -63,6 +63,7 @@ func drawDebugText(rt *ebiten.Image, str string, ox, oy int, shadow bool) {
|
||||
op.GeoM.Reset()
|
||||
op.GeoM.Translate(float64(x), float64(y))
|
||||
op.GeoM.Translate(float64(ox+1), float64(oy))
|
||||
op.CompositeMode = ebiten.CompositeModeLighter
|
||||
_ = rt.DrawImage(s, op)
|
||||
x += cw
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user