diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-10 22:14:18 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-10 22:14:18 +0200 |
commit | 2a91f0dca320f6be061224cb42ceb31c32a51b6c (patch) | |
tree | f6126c8f5fee5ead053bc9ef58e5d5c61b5939cc /tests | |
parent | b52ed4028309fd20e3955c5f1a6adce9aa12c87b (diff) |
Add mgl_text_set_max_width and mgl_text_set_max_rows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 2 |
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); |