mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: prevent cliping of long font names in draw_static_text.v
This commit is contained in:
parent
3f8e92bc6d
commit
423a94aa58
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ fn my_init(mut app App_data) {
|
|||
for i in 0 .. 2 {
|
||||
mut txt := unsafe { &app.ttf_render[i] }
|
||||
txt.destroy_texture()
|
||||
txt.create_text_block(texts[i], 600, 600, 24)
|
||||
txt.create_text_block(texts[i], 1024, 1024, 24)
|
||||
txt.create_texture()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue