mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
all: remove redundant op.TransformOp.Offset
Use op.Offset instead, or create and manipulate a f32.Affine2D.
API change. Update your code with a gofmt rule:
gofmt -r 'op.TransformOp{}.Offset -> op.Offset'
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@ func (l *List) layout() Dimensions {
|
||||
}
|
||||
stack := op.Push(ops)
|
||||
clip.Rect{Rect: FRect(r)}.Op(ops).Add(ops)
|
||||
op.TransformOp{}.Offset(FPt(axisPoint(l.Axis, pos, cross))).Add(ops)
|
||||
op.Offset(FPt(axisPoint(l.Axis, pos, cross))).Add(ops)
|
||||
child.call.Add(ops)
|
||||
stack.Pop()
|
||||
pos += childSize
|
||||
|
||||
Reference in New Issue
Block a user