freetype: fix utf crash

pull/1656/head
Alexander Medvednikov 2019-08-18 18:11:17 +03:00
parent f013359a44
commit 18d0a08ace
1 changed files with 2 additions and 2 deletions

View File

@ -255,8 +255,8 @@ fn (ctx mut Context) init_utf8_runes() {
// fn (ctx &GG) render_text(text string, x, y, scale f32, color gx.Color) {
pub fn (ctx &Context) draw_text(_x, _y int, text string, cfg gx.TextCfg) {
utext := text.ustring_tmp()
// utext := text.ustring()
//utext := text.ustring_tmp()
utext := text.ustring()
ctx._draw_text(_x, _y, utext, cfg)
// utext.free()
// # glScissor(0,0,ctx->width*2,ctx->height*2);