examples: prevent cliping of long font names in draw_static_text.v

This commit is contained in:
Delyan Angelov 2024-08-22 12:49:27 +03:00
parent 3f8e92bc6d
commit 423a94aa58
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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()
}
}