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

fix all Foo{!}

This commit is contained in:
Alexander Medvednikov
2019-12-04 13:08:28 +03:00
parent e32cbfcca7
commit 40df0644ca
4 changed files with 11 additions and 11 deletions

View File

@@ -70,13 +70,13 @@ pub mut:
// fn new_context(width, height int, use_ortho bool, font_size int) *GG {
pub fn new_context(cfg Cfg) &GG {
mut window := &glfw.Window{!}
mut window := &glfw.Window(0)
if cfg.create_window {
if cfg.resizable {
glfw.window_hint(C.GLFW_RESIZABLE, 1)
} else {
glfw.window_hint(C.GLFW_RESIZABLE, 0)
}
}
window = glfw.create_window(glfw.WinCfg{
title: cfg.window_title
width: cfg.width