mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
op/paint: make the shape argument last in FillShape
FillShape is a generalization of Fill, so it seems more natural to have the extra argument last. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-3
@@ -156,9 +156,8 @@ func (d PaintOp) Add(o *op.Ops) {
|
||||
bo.PutUint32(data[13:], math.Float32bits(d.Rect.Max.Y))
|
||||
}
|
||||
|
||||
// FillShape fills the area described by the provided clip.Op with the
|
||||
// provided color.
|
||||
func FillShape(ops *op.Ops, shape clip.Op, c color.RGBA) {
|
||||
// FillShape fills the clip shape with a color.
|
||||
func FillShape(ops *op.Ops, c color.RGBA, shape clip.Op) {
|
||||
defer op.Push(ops).Pop()
|
||||
shape.Add(ops)
|
||||
Fill(ops, c)
|
||||
|
||||
Reference in New Issue
Block a user