1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tetris: fix &Foo instead of *Foo warnings.

This commit is contained in:
Delyan Angelov
2019-09-03 09:04:11 +03:00
committed by Alexander Medvednikov
parent 83d724fb70
commit ecb661f719
5 changed files with 13 additions and 13 deletions

View File

@@ -61,13 +61,13 @@ struct GG {
vbo u32
scale int // retina = 2 , normal = 1
pub mut:
window *glfw.Window
window &glfw.Window
render_fn fn()
}
// fn new_context(width, height int, use_ortho bool, font_size int) *GG {
pub fn new_context(cfg Cfg) *GG {
pub fn new_context(cfg Cfg) &GG {
mut window := &glfw.Window{!}
if cfg.create_window {
window = glfw.create_window(glfw.WinCfg{