aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-10 22:14:18 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-10 22:14:18 +0200
commit2a91f0dca320f6be061224cb42ceb31c32a51b6c (patch)
treef6126c8f5fee5ead053bc9ef58e5d5c61b5939cc /tests
parentb52ed4028309fd20e3955c5f1a6adce9aa12c87b (diff)
Add mgl_text_set_max_width and mgl_text_set_max_rows
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c
index f52e3d4..3ec5738 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -61,6 +61,8 @@ static void draw(mgl_window *window, void *userdata) {
mgl_text text;
mgl_text_init(&text, u->font, str, strlen(str));
+ mgl_text_set_max_width(&text, 200.0f);
+ mgl_text_set_max_rows(&text, 5);
mgl_text_draw(context, &text);
mgl_text_deinit(&text);