From 423a94aa5854a5e55dbae6a1dfc95c87c77ec9cd Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 22 Aug 2024 12:49:27 +0300 Subject: [PATCH] examples: prevent cliping of long font names in draw_static_text.v --- examples/ttf_font/draw_static_text.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ttf_font/draw_static_text.v b/examples/ttf_font/draw_static_text.v index 9f0e4a4126..5f02e5dd56 100644 --- a/examples/ttf_font/draw_static_text.v +++ b/examples/ttf_font/draw_static_text.v @@ -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() } }