From 6eb1479fc50500b572633204f7f36a83f30208fd Mon Sep 17 00:00:00 2001 From: mcolonna Date: Thu, 7 Nov 2024 19:25:28 +0100 Subject: [PATCH] little compilation fix --- src/input_utils.c | 8 ++++++-- src/input_utils.h | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/input_utils.c b/src/input_utils.c index 1e8e415..59ebd65 100644 --- a/src/input_utils.c +++ b/src/input_utils.c @@ -6,13 +6,17 @@ /* By: mc +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/07 19:02:04 by mc #+# #+# */ -/* Updated: 2024/11/07 19:02:15 by mc ### ########.fr */ +/* Updated: 2024/11/07 19:24:05 by mc ### ########.fr */ /* */ /* ************************************************************************** */ #include "input_utils.h" -static int hook_mousemove(int x, int y) +#include "const.h" +#include "utils.h" +#include "global.h" + +int hook_mousemove(int x, int y) { static const t_point_int window_middle = { SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2}; diff --git a/src/input_utils.h b/src/input_utils.h index 0006b00..1abf508 100644 --- a/src/input_utils.h +++ b/src/input_utils.h @@ -6,7 +6,7 @@ /* By: mc +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/07 19:02:26 by mc #+# #+# */ -/* Updated: 2024/11/07 19:03:02 by mc ### ########.fr */ +/* Updated: 2024/11/07 19:22:55 by mc ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,6 +15,6 @@ # include "input.h" -static int hook_mousemove(int x, int y); +int hook_mousemove(int x, int y); #endif