Skip to content

Commit 13e2650

Browse files
authored
Fix invalid cast
1 parent 628d7b2 commit 13e2650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mlx_mouse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ void mlx_get_mouse_pos(mlx_t* mlx, int32_t* x, int32_t* y)
9595

9696
double xd, yd;
9797
glfwGetCursorPos(mlx->window, &xd, &yd);
98-
*x = (int32_t)x;
99-
*y = (int32_t)y;
98+
*x = (int32_t)xd;
99+
*y = (int32_t)yd;
100100
}

0 commit comments

Comments
 (0)