~eliasnaur/gio

a4ccc861ac140b6a26789c13387259a4161a3785 — Elias Naur 2 years ago 9142345
apps/gophers: switch to explicit drawing state stack

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M apps/gophers/main.go
M apps/gophers/main.go => apps/gophers/main.go +2 -2
@@ 691,10 691,10 @@ func (c *clipCircle) End(ops *ui.Ops, dims layout.Dimens) layout.Dimens {
	}
	szf := float32(max)
	rr := szf * .5
	ops.Begin()
	ui.OpPush{}.Add(ops)
	gdraw.OpClip{Path: rrect(szf, szf, rr, rr, rr, rr)}.Add(ops)
	block.Add(ops)
	ops.End().Add(ops)
	ui.OpPop{}.Add(ops)
	return dims
}