From 36d343e931c55cfd9dcc26833c72a1ede04e1ab8 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 1 Jul 2019 02:52:48 +0200 Subject: [PATCH] fix examples --- vlib/gg/gg.v | 4 ++-- vlib/http/download_mac.v | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 6ebfbb7685..ea02de9545 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -60,7 +60,7 @@ struct Face { struct Cfg { width int height int - use_ortho int + use_ortho bool retina bool font_size int } @@ -90,7 +90,7 @@ pub fn new_context(cfg Cfg) *GG { // # glScissor(0,0,300,300); shader := gl.new_shader('simple') shader.use() - if cfg.use_ortho > 0 { + if cfg.use_ortho { projection := glm.ortho(0, cfg.width, cfg.height, 0) /* // for debugging broken tetris in gg.o diff --git a/vlib/http/download_mac.v b/vlib/http/download_mac.v index d967b941a5..cb132ecf81 100644 --- a/vlib/http/download_mac.v +++ b/vlib/http/download_mac.v @@ -24,7 +24,7 @@ fn download_cb(ptr voidptr, size, nmemb size_t, userp voidptr) int { return written } -fn download_file_with_progress(url, out string, cb, cb_finished download_finished_fn) { +fn download_file_with_progress(url, out string, cb, cb_finished downloadfn) { curl := C.curl_easy_init() if isnil(curl) { return