From 8577dfc3aabd5e4d764484946643f09af40c3a38 Mon Sep 17 00:00:00 2001 From: dk Date: Sat, 11 Jul 2020 17:33:20 -0700 Subject: [PATCH] set compositing on debug print so text bg is transparent (#578) --- d2common/d2DebugUtil/d2DebugPrint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/d2common/d2DebugUtil/d2DebugPrint.go b/d2common/d2DebugUtil/d2DebugPrint.go index a6f81dde..a2a3a35c 100644 --- a/d2common/d2DebugUtil/d2DebugPrint.go +++ b/d2common/d2DebugUtil/d2DebugPrint.go @@ -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 }