mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
example,cmd: bump gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -92,7 +92,13 @@ func main() {
|
||||
}
|
||||
width, height := window.GetSize()
|
||||
sz := image.Point{X: width, Y: height}
|
||||
gtx := layout.NewContext(&ops, &queue, &glfwConfig{scale}, sz)
|
||||
ops.Reset()
|
||||
gtx := layout.Context{
|
||||
Ops: &ops,
|
||||
Queue: &queue,
|
||||
Config: &glfwConfig{scale},
|
||||
Constraints: layout.Exact(sz),
|
||||
}
|
||||
draw(gtx, th)
|
||||
gpu.Collect(sz, gtx.Ops)
|
||||
gpu.BeginFrame()
|
||||
|
||||
Reference in New Issue
Block a user