diff --git a/examples/flappylearning/game.v b/examples/flappylearning/game.v index f957b113e1..64a33c375d 100644 --- a/examples/flappylearning/game.v +++ b/examples/flappylearning/game.v @@ -172,9 +172,7 @@ fn (mut app App) update() { } fn main() { - mut app := &App{ - gg: 0 - } + mut app := &App{} mut font_path := os.resource_abs_path(os.join_path('..', 'assets', 'fonts', 'RobotoMono-Regular.ttf')) $if android { font_path = 'fonts/RobotoMono-Regular.ttf' diff --git a/examples/game_of_life/life_gg.v b/examples/game_of_life/life_gg.v index 4b465f246b..840a7ad9e6 100644 --- a/examples/game_of_life/life_gg.v +++ b/examples/game_of_life/life_gg.v @@ -37,7 +37,6 @@ fn frame(mut app App) { fn main() { mut app := App{ - gg: 0 a: automaton.gun() } app.gg = gg.new_context( diff --git a/examples/gg/drag_n_drop.v b/examples/gg/drag_n_drop.v index cade10a9d4..aaf0f197fd 100644 --- a/examples/gg/drag_n_drop.v +++ b/examples/gg/drag_n_drop.v @@ -17,9 +17,7 @@ mut: fn main() { mut font_path := os.resource_abs_path(os.join_path('..', 'assets', 'fonts', 'RobotoMono-Regular.ttf')) - mut app := &App{ - gg: 0 - } + mut app := &App{} app.gg = gg.new_context( bg_color: gx.rgb(174, 198, 255) width: 600 diff --git a/examples/gg/draw_pixels.v b/examples/gg/draw_pixels.v index c49bf1dfa6..d0334b77b0 100644 --- a/examples/gg/draw_pixels.v +++ b/examples/gg/draw_pixels.v @@ -25,7 +25,6 @@ fn main() { } } mut app := &App{ - gg: 0 pixels: pixels } app.gg = gg.new_context( diff --git a/examples/gg/raven_text_rendering.v b/examples/gg/raven_text_rendering.v index ce418cd1e9..5f5a60ebf6 100644 --- a/examples/gg/raven_text_rendering.v +++ b/examples/gg/raven_text_rendering.v @@ -61,9 +61,7 @@ mut: } fn main() { - mut app := &App{ - gg: 0 - } + mut app := &App{} mut font_path := os.resource_abs_path(os.join_path('..', 'assets', 'fonts', 'RobotoMono-Regular.ttf')) $if android { font_path = 'fonts/RobotoMono-Regular.ttf' diff --git a/examples/gg/rectangles.v b/examples/gg/rectangles.v index d17b388c12..f170c6a5ea 100644 --- a/examples/gg/rectangles.v +++ b/examples/gg/rectangles.v @@ -14,9 +14,7 @@ mut: } fn main() { - mut app := &App{ - gg: 0 - } + mut app := &App{} app.gg = gg.new_context( bg_color: gx.white width: win_width diff --git a/examples/gg/stars.v b/examples/gg/stars.v index 3e96a11528..cda3d0d560 100644 --- a/examples/gg/stars.v +++ b/examples/gg/stars.v @@ -43,7 +43,6 @@ mut: fn main() { mut app := &App{ - gg: 0 stars: []Star{len: max_stars} v_letters: []VLetter{len: max_v_letters} } diff --git a/examples/gg/worker_thread.v b/examples/gg/worker_thread.v index 2d73492c3b..8112067f88 100644 --- a/examples/gg/worker_thread.v +++ b/examples/gg/worker_thread.v @@ -22,9 +22,7 @@ mut: } fn main() { - mut app := &App{ - gg: 0 - } + mut app := &App{} app.gg = gg.new_context( width: win_width height: win_height diff --git a/examples/hot_reload/graph.v b/examples/hot_reload/graph.v index 5960417a67..6ea50525fb 100644 --- a/examples/hot_reload/graph.v +++ b/examples/hot_reload/graph.v @@ -14,9 +14,7 @@ mut: } fn main() { - mut context := &Context{ - gg: 0 - } + mut context := &Context{} context.gg = gg.new_context( width: size height: size diff --git a/examples/snek/snek.v b/examples/snek/snek.v index 9f189db72f..8779df0974 100644 --- a/examples/snek/snek.v +++ b/examples/snek/snek.v @@ -195,9 +195,7 @@ const font = $embed_file('../assets/fonts/RobotoMono-Regular.ttf') // setup fn main() { - mut app := App{ - gg: 0 - } + mut app := App{} app.reset_game() app.best.load() diff --git a/examples/sokol/sounds/melody.v b/examples/sokol/sounds/melody.v index 112a382f5a..341ded9b4b 100644 --- a/examples/sokol/sounds/melody.v +++ b/examples/sokol/sounds/melody.v @@ -33,9 +33,7 @@ fn my_audio_stream_callback(buffer &f32, num_frames int, num_channels int, mut a fn main() { println(credits) - mut state := &AppState{ - gg: 0 - } + mut state := &AppState{} audio.setup( stream_userdata_cb: my_audio_stream_callback user_data: state diff --git a/examples/ttf_font/example_ttf.v b/examples/ttf_font/example_ttf.v index 35d3400191..64012fcc4c 100644 --- a/examples/ttf_font/example_ttf.v +++ b/examples/ttf_font/example_ttf.v @@ -115,9 +115,7 @@ fn my_event_manager(mut ev gg.Event, mut app App_data) { } fn main() { - mut app := &App_data{ - gg: 0 - } + mut app := &App_data{} app.gg = gg.new_context( width: win_width height: win_height