mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
gpu,op/clip: implement stroked paths with miter joins
Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
committed by
Elias Naur
parent
7de8ce51a5
commit
7eb32360e5
+3
-2
@@ -162,8 +162,9 @@ func (op *clipOp) decode(data []byte) {
|
||||
bounds: layout.FRect(r),
|
||||
width: math.Float32frombits(bo.Uint32(data[17:])),
|
||||
style: clip.StrokeStyle{
|
||||
Cap: clip.StrokeCap(data[21]),
|
||||
Join: clip.StrokeJoin(data[22]),
|
||||
Cap: clip.StrokeCap(data[21]),
|
||||
Join: clip.StrokeJoin(data[22]),
|
||||
Miter: math.Float32frombits(bo.Uint32(data[23:])),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user