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

freetype: fix utf crash

This commit is contained in:
Alexander Medvednikov 2019-08-18 18:11:17 +03:00
parent f013359a44
commit 18d0a08ace

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);