aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-18 01:39:47 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-18 01:39:47 +0200
commitfc98ecc0fb9461688a5f82515248f56f507080f2 (patch)
tree9b4f43cc75a4a3c2577f7fd23054d38f819bec9f /tests
parent6083534cd846eda51cc8664447ba1490837fd5e3 (diff)
Add set_position and set_color to rectangle,sprite and text
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index bfc73ef..5841924 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -25,7 +25,7 @@ static void draw(mgl_window *window, void *userdata) {
mgl_sprite sprite;
mgl_sprite_init(&sprite, u->texture, 100.0f - 10.0f, 0.0f);
- mgl_sprite_set_color(&sprite, 1.0f, 1.0f, 1.0f, 0.5f);
+ mgl_sprite_set_color(&sprite, (mgl_color){1.0f, 1.0f, 1.0f, 0.5f});
mgl_sprite_draw(context, &sprite);
mgl_text text;