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:
parent
f013359a44
commit
18d0a08ace
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user