fix examples

pull/870/head
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 { struct Cfg {
width int width int
height int height int
use_ortho int use_ortho bool
retina bool retina bool
font_size int font_size int
} }
@ -90,7 +90,7 @@ pub fn new_context(cfg Cfg) *GG {
// # glScissor(0,0,300,300); // # glScissor(0,0,300,300);
shader := gl.new_shader('simple') shader := gl.new_shader('simple')
shader.use() shader.use()
if cfg.use_ortho > 0 { if cfg.use_ortho {
projection := glm.ortho(0, cfg.width, cfg.height, 0) projection := glm.ortho(0, cfg.width, cfg.height, 0)
/* /*
// for debugging broken tetris in gg.o // 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 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() curl := C.curl_easy_init()
if isnil(curl) { if isnil(curl) {
return return