Skip to content
Snippets Groups Projects
Commit b41a436d authored by faiface's avatar faiface
Browse files

minor change

parent 68008f16
No related branches found
No related tags found
No related merge requests found
......@@ -254,12 +254,15 @@ func (txt *Text) Draw(t pixel.Target) {
if txt.dirty {
txt.trans.SetLen(txt.tris.Len())
txt.trans.Update(&txt.tris)
for i := range txt.trans {
txt.trans[i].Position = txt.mat.Project(txt.trans[i].Position)
txt.trans[i].Color = txt.trans[i].Color.Mul(txt.col)
}
txt.transD.Dirty()
txt.dirty = false
}
txt.transD.Draw(t)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment