mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove exit1
This commit is contained in:
parent
e1e8a50a46
commit
5122b85728
4
gg/gg.v
4
gg/gg.v
@ -346,7 +346,7 @@ fn new_context_text(cfg Cfg, scale int) *GG {
|
|||||||
}
|
}
|
||||||
if !os.file_exists(font_path) {
|
if !os.file_exists(font_path) {
|
||||||
println('failed to load RobotoMono-Regular.ttf')
|
println('failed to load RobotoMono-Regular.ttf')
|
||||||
exit1()
|
exit(1)
|
||||||
}
|
}
|
||||||
# FT_Face face;
|
# FT_Face face;
|
||||||
# if (FT_New_Face(ft, font_path.str, 0, &face))
|
# if (FT_New_Face(ft, font_path.str, 0, &face))
|
||||||
@ -468,7 +468,7 @@ fn (ctx &GG) _draw_text(_x, _y int, utext ustring, cfg gx.TextCfg) {
|
|||||||
firstc := utext.at(0)
|
firstc := utext.at(0)
|
||||||
println('drawtext "$utext.s" len=$utext.s.len ulen=$utext.len x=$_x firstc=$firstc')
|
println('drawtext "$utext.s" len=$utext.s.len ulen=$utext.len x=$_x firstc=$firstc')
|
||||||
if firstc != ' ' {
|
if firstc != ' ' {
|
||||||
exit1()
|
exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user