diff --git a/Makefile b/Makefile index 04ff4beb28..423e869344 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ else V_V=`git rev-parse --short HEAD`; \ if [ $$VC_V != $$V_V ]; then \ echo "Self rebuild ($$VC_V => $$V_V)"; \ - ./v v.v; \ + ./v -o v v.v; \ fi) endif rm -rf vc/ @@ -49,4 +49,4 @@ ifdef LINUX endif selfcompile: - ./v v.v + ./v -o v v.v diff --git a/vlib/compiler/module_header.v b/vlib/compiler/module_header.v index 00d4a53627..b2cc8db9b5 100644 --- a/vlib/compiler/module_header.v +++ b/vlib/compiler/module_header.v @@ -44,7 +44,6 @@ fn generate_vh(mod string) { for file in filtered { mut p := v.new_parser_from_file(file) p.scanner.is_vh = true - println('kek $file') p.parse(.decl) for i, tok in p.tokens { if !p.tok.is_decl() { diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index f4b96ff0f0..09668777b8 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -38,6 +38,7 @@ pub: height int use_ortho bool retina bool + resizable bool font_size int font_path string @@ -70,6 +71,11 @@ pub mut: pub fn new_context(cfg Cfg) &GG { mut window := &glfw.Window{!} 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