Skip to content

Commit

Permalink
Adopt to api change of gioui.org@0.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Dec 7, 2023
1 parent f45a265 commit 781970c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,14 @@ func main() {
}()

var ops op.Ops
for e := range w.Events() {
switch e := e.(type) {

for {
switch e := w.NextEvent().(type) {
case system.FrameEvent:
gtx := layout.NewContext(&ops, e)
splashWidget.Layout(gtx)
e.Frame(gtx.Ops)
case system.DestroyEvent:
// Omitted
}
}
}()
Expand Down

0 comments on commit 781970c

Please sign in to comment.