mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
examples: prevent cliping of long font names in draw_static_text.v
This commit is contained in:
parent
3f8e92bc6d
commit
423a94aa58
@ -39,7 +39,7 @@ fn my_init(mut app App_data) {
|
|||||||
for i in 0 .. 2 {
|
for i in 0 .. 2 {
|
||||||
mut txt := unsafe { &app.ttf_render[i] }
|
mut txt := unsafe { &app.ttf_render[i] }
|
||||||
txt.destroy_texture()
|
txt.destroy_texture()
|
||||||
txt.create_text_block(texts[i], 600, 600, 24)
|
txt.create_text_block(texts[i], 1024, 1024, 24)
|
||||||
txt.create_texture()
|
txt.create_texture()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user