mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
cmd,example: bump gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -95,6 +95,7 @@ func main() {
|
||||
ops.Reset()
|
||||
gtx := layout.Context{
|
||||
Ops: &ops,
|
||||
Now: time.Now(),
|
||||
Queue: &queue,
|
||||
Config: &glfwConfig{scale},
|
||||
Constraints: layout.Exact(sz),
|
||||
@@ -159,10 +160,6 @@ func registerCallbacks(window *glfw.Window, q *router.Router) {
|
||||
})
|
||||
}
|
||||
|
||||
func (s *glfwConfig) Now() time.Time {
|
||||
return time.Now()
|
||||
}
|
||||
|
||||
func (s *glfwConfig) Px(v unit.Value) int {
|
||||
scale := s.Scale
|
||||
if v.U == unit.UnitPx {
|
||||
|
||||
Reference in New Issue
Block a user