apps/gophers: update to StackOp

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-16 13:51:20 +02:00
parent 586d33c26e
commit 8f0d741d9f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/apps
go 1.12
require (
gioui.org/ui v0.0.0-20190716112151-94a913a371c4
gioui.org/ui v0.0.0-20190716114932-586d33c26e58
github.com/google/go-github/v24 v24.0.1
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9
+3 -2
View File
@@ -696,10 +696,11 @@ func (c *clipCircle) End(dims layout.Dimens) layout.Dimens {
}
szf := float32(max)
rr := szf * .5
ui.PushOp{}.Add(ops)
var stack ui.StackOp
stack.Push(ops)
rrect(ops, szf, szf, rr, rr, rr, rr)
c.m.Add(ops)
ui.PopOp{}.Add(ops)
stack.Pop()
return dims
}