mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
op/clip: remove unused parameter from Rect.Op
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -325,11 +325,11 @@ func (p *Path) End() Op {
|
|||||||
type Rect image.Rectangle
|
type Rect image.Rectangle
|
||||||
|
|
||||||
// Op returns the op for the rectangle.
|
// Op returns the op for the rectangle.
|
||||||
func (r Rect) Op(ops *op.Ops) Op {
|
func (r Rect) Op() Op {
|
||||||
return Op{bounds: image.Rectangle(r)}
|
return Op{bounds: image.Rectangle(r)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the clip operation.
|
// Add the clip operation.
|
||||||
func (r Rect) Add(ops *op.Ops) {
|
func (r Rect) Add(ops *op.Ops) {
|
||||||
r.Op(ops).Add(ops)
|
r.Op().Add(ops)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user