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

fix examples

This commit is contained in:
Alexander Medvednikov 2019-07-01 02:52:48 +02:00
parent 87fb898864
commit 36d343e931
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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