From fc98ecc0fb9461688a5f82515248f56f507080f2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 18 Oct 2021 01:39:47 +0200 Subject: Add set_position and set_color to rectangle,sprite and text --- tests/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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; -- cgit v1.2.3