diff --git a/ext/text/text.go b/ext/text/text.go index 8481084..f4c4f6d 100644 --- a/ext/text/text.go +++ b/ext/text/text.go @@ -258,7 +258,7 @@ func (txt *Text) DrawColorMask(t pixel.Target, matrix pixel.Matrix, mask color.C txt.dirty = true } - offset := txt.Orig.Sub(txt.Bounds().Max.Add(txt.Bounds().AnchorPos(txt.anchor.Opposite()))) + offset := txt.Bounds().AnchorPos(txt.anchor) txt.mat = pixel.IM.Moved(offset).Chained(txt.mat) if mask == nil {