diff --git a/apps/go.mod b/apps/go.mod index d8441f4a..f429a265 100644 --- a/apps/go.mod +++ b/apps/go.mod @@ -3,7 +3,7 @@ module gioui.org/apps go 1.13 require ( - gioui.org v0.0.0-20190930145547-3784ece6dd65 + gioui.org v0.0.0-20191002133505-e0313081720e 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 diff --git a/apps/go.sum b/apps/go.sum index d2671606..d22992bd 100644 --- a/apps/go.sum +++ b/apps/go.sum @@ -1,6 +1,6 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -gioui.org v0.0.0-20190930145547-3784ece6dd65 h1:XDqME1BCMzxxeEQerX17EPFeJ0hkwu16Kyv1dakLadI= -gioui.org v0.0.0-20190930145547-3784ece6dd65/go.mod h1:+CEjc9B//HrBfWsQOVxjCyih7HGIj3Pww1xFHVDZyyk= +gioui.org v0.0.0-20191002133505-e0313081720e h1:v9VYMpcf7ZJWx2b7fpIZFVWCUVPlEZqcLgd5GJSUi2A= +gioui.org v0.0.0-20191002133505-e0313081720e/go.mod h1:+CEjc9B//HrBfWsQOVxjCyih7HGIj3Pww1xFHVDZyyk= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= diff --git a/apps/gophers/main.go b/apps/gophers/main.go index 69575377..8daa41f4 100644 --- a/apps/gophers/main.go +++ b/apps/gophers/main.go @@ -127,7 +127,7 @@ func (a *App) run() error { } } case app.UpdateEvent: - gtx.Reset(&e.Config, layout.RigidConstraints(e.Size)) + gtx.Reset(&e.Config, e.Size) a.ui.Layout(gtx) a.w.Update(gtx.Ops) } diff --git a/apps/gophers/main_test.go b/apps/gophers/main_test.go index 1d22b0da..7503436a 100644 --- a/apps/gophers/main_test.go +++ b/apps/gophers/main_test.go @@ -24,7 +24,7 @@ func BenchmarkUI(b *testing.B) { Queue: new(queue), } for i := 0; i < b.N; i++ { - gtx.Reset(cfg, layout.RigidConstraints(image.Point{800, 600})) + gtx.Reset(cfg, image.Point{800, 600}) u.Layout(gtx) } } diff --git a/apps/hello/hello.go b/apps/hello/hello.go index 6b53a3e2..3781fb4d 100644 --- a/apps/hello/hello.go +++ b/apps/hello/hello.go @@ -48,7 +48,7 @@ func loop(w *app.Window) error { case app.DestroyEvent: return e.Err case app.UpdateEvent: - c.Reset(&e.Config, layout.RigidConstraints(e.Size)) + c.Reset(&e.Config, e.Size) faces.Reset(c.Config) var material op.MacroOp material.Record(c.Ops)