aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-16 08:54:21 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-16 08:54:21 +0200
commit5cbff06ff9153f7a7958202a777d98ebeae59393 (patch)
treee472c74f486e9d3c877a2fb8044ca781b05396b8 /tests
parent1952897a8cb411d9b10d75ac6a8c223924c07e09 (diff)
Cursor motion
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 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);