set compositing on debug print so text bg is transparent (#578)

This commit is contained in:
dk 2020-07-11 17:33:20 -07:00 committed by GitHub
parent 7b60882ba3
commit 8577dfc3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
}