From 13e0e6351457e708567d65e8ecbc8ec0c32390fb Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 1 May 2020 14:44:22 +0300 Subject: [PATCH] hot_reload: fix graph.v compilation --- examples/hot_reload/graph.v | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/hot_reload/graph.v b/examples/hot_reload/graph.v index 5802b22dbd..6e5b3c40f8 100644 --- a/examples/hot_reload/graph.v +++ b/examples/hot_reload/graph.v @@ -18,17 +18,16 @@ struct Context { fn main() { glfw.init_glfw() - ctx:= &Context{ - gg: gg.new_context(gg.Cfg { + gconfig := gg.Cfg { width: Size height: Size use_ortho: true create_window: true window_title: 'Graph builder' - window_user_ptr: ctx always_on_top: true - }) } + ctx := &Context{ gg: gg.new_context(gconfig) } + ctx.gg.window.set_user_ptr( ctx ) go update() // update the scene in the background in case the window isn't focused for { if ctx.gg.window.should_close() {