diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-16 08:54:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-16 08:54:21 +0200 |
commit | 5cbff06ff9153f7a7958202a777d98ebeae59393 (patch) | |
tree | e472c74f486e9d3c877a2fb8044ca781b05396b8 /tests | |
parent | 1952897a8cb411d9b10d75ac6a8c223924c07e09 (diff) |
Cursor motion
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |