ui: merge Transform into TransformOp

The separate Transform type is not worth its weight.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-29 01:02:26 -07:00
parent d178167c3b
commit 5e1f078b12
9 changed files with 29 additions and 39 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ type drawOps struct {
type drawState struct {
clip f32.Rectangle
t ui.Transform
t ui.TransformOp
cpath *pathOp
rect bool
z int
@@ -664,7 +664,7 @@ loop:
case ops.TypeTransform:
var op ui.TransformOp
op.Decode(encOp.Data)
state.t = state.t.Mul(op.Transform)
state.t = state.t.Mul(op)
case ops.TypeAux:
aux = encOp.Data[ops.TypeAuxLen:]
auxKey = encOp.Key