freetype: fix compiler warning about ctx._draw_text

pull/2293/head
Delyan Angelov 2019-10-10 20:09:19 +03:00 committed by Alexander Medvednikov
parent e64609387d
commit e61dce6441
1 changed files with 3 additions and 3 deletions

View File

@ -252,14 +252,14 @@ fn (ctx mut Context) init_utf8_runes() {
pub fn (ctx mut Context) draw_text(_x, _y int, text string, cfg gx.TextCfg) {
//utext := text.ustring_tmp()
utext := text.ustring()
ctx._draw_text(_x, _y, utext, cfg)
ctx.private_draw_text(_x, _y, utext, cfg)
}
fn (ctx mut Context) draw_text_fast(_x, _y int, text ustring, cfg gx.TextCfg) {
ctx._draw_text(_x, _y, text, cfg)
ctx.private_draw_text(_x, _y, text, cfg)
}
fn (ctx mut Context) _draw_text(_x, _y int, utext ustring, cfg gx.TextCfg) {
fn (ctx mut Context) private_draw_text(_x, _y int, utext ustring, cfg gx.TextCfg) {
/*
if utext.s.contains('on_seg') {
println('\nat(0)')