From 5cbff06ff9153f7a7958202a777d98ebeae59393 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 16 Oct 2021 08:54:21 +0200 Subject: Cursor motion --- 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 2154b2b..478e432 100644 --- a/tests/main.c +++ b/tests/main.c @@ -15,7 +15,7 @@ static void draw(mgl_window *window, void *userdata) { mgl_rectangle rect = { .color = { 1.0f, 0.0f, 0.0f, 1.0f }, - .position = { 0.0f, 0.0f }, + .position = { window->cursor_position.x, window->cursor_position.y }, .size = { 100.0f, 500.0f } }; mgl_rectangle_draw(context, &rect); -- cgit v1.2.3