mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user