mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
builtin: str.last_index(); pref: hide-auto-str;
This commit is contained in:
parent
85533fe178
commit
acf0107493
13 changed files with 82 additions and 49 deletions
|
@ -186,6 +186,7 @@ pub fn (ctx &Context) draw_text(x int, y int, text_ string, cfg gx.TextCfg) {
|
|||
if ctx.native_rendering {
|
||||
if cfg.align == gx.align_right {
|
||||
width := ctx.text_width(text_)
|
||||
// println('draw text ctx.height = ${ctx.height}')
|
||||
C.darwin_draw_string(x - width, ctx.height - y, text_, cfg)
|
||||
} else {
|
||||
C.darwin_draw_string(x, ctx.height - y, text_, cfg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue