diff options
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); |