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