diff --git a/example/build.sh b/example/build.sh index 28c509c..4405e9d 100755 --- a/example/build.sh +++ b/example/build.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ -e a.out ]; then + rm a.out +fi + if [ $(uname -s) = 'Darwin' ]; then clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g; else diff --git a/includes/mlx.h b/includes/mlx.h index 733f237..6c5c733 100644 --- a/includes/mlx.h +++ b/includes/mlx.h @@ -352,8 +352,8 @@ MLX_API int mlx_destroy_display(void* mlx); * @brief Get screen size * * @param mlx Internal MLX application - * @param x Get X size - * @param y Get Y size + * @param w Get width size + * @param h Get height size * * @return (int) Always return 0, made this to copy the behaviour of the original MLX */ diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 8edf9a3..2e2ee51 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -13,7 +13,6 @@ #include #include #include -#include namespace mlx { diff --git a/src/platform/inputs.h b/src/platform/inputs.h index 9e68289..fb663fc 100644 --- a/src/platform/inputs.h +++ b/src/platform/inputs.h @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/05 16:27:35 by maldavid #+# #+# */ -/* Updated: 2023/12/11 19:47:20 by kbz_8 ### ########.fr */ +/* Updated: 2023/12/11 19:47:20 by vavaas ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/src/renderer/renderer.cpp b/src/renderer/renderer.cpp index 0c9ff75..e2c8bdb 100644 --- a/src/renderer/renderer.cpp +++ b/src/renderer/renderer.cpp @@ -10,7 +10,6 @@ /* */ /* ************************************************************************** */ -#include #include #include #include diff --git a/src/renderer/renderer.h b/src/renderer/renderer.h index fcd820c..7b4dd5f 100644 --- a/src/renderer/renderer.h +++ b/src/renderer/renderer.h @@ -13,7 +13,6 @@ #ifndef __RENDERER__ #define __RENDERER__ -#include #include #include