From 68570910e3c101fd972c7dcef2be782bc0542b76 Mon Sep 17 00:00:00 2001 From: Namonay Date: Tue, 9 Jan 2024 00:31:39 +0100 Subject: [PATCH 1/4] Fixed brief typo --- includes/mlx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ From 36fae5c7d1924d18699a1c5ebeeb8c849ef0b61c Mon Sep 17 00:00:00 2001 From: Namonay Date: Tue, 9 Jan 2024 01:01:31 +0100 Subject: [PATCH 2/4] update buid.sh --- example/build.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 From 2b557d5be7adef8bb0046fb039d768bc33fb7e9d Mon Sep 17 00:00:00 2001 From: Namonay Date: Tue, 9 Jan 2024 01:28:50 +0100 Subject: [PATCH 3/4] =?UTF-8?q?removed=20useless=20includes=20=F0=9F=A4=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/memory.cpp | 1 - src/platform/inputs.h | 3 +-- src/renderer/renderer.cpp | 1 - src/renderer/renderer.h | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) 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..c4b1297 100644 --- a/src/platform/inputs.h +++ b/src/platform/inputs.h @@ -6,11 +6,10 @@ /* 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 */ /* */ /* ************************************************************************** */ -#include #include #include #include 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 From aa2d0be63f317857787bac267d70de2a7afd79ef Mon Sep 17 00:00:00 2001 From: Namonay Date: Tue, 9 Jan 2024 01:37:01 +0100 Subject: [PATCH 4/4] added back not so much 'unnecesary' include --- src/platform/inputs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/inputs.h b/src/platform/inputs.h index c4b1297..fb663fc 100644 --- a/src/platform/inputs.h +++ b/src/platform/inputs.h @@ -6,10 +6,11 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/05 16:27:35 by maldavid #+# #+# */ -/* Updated: 2023/12/11 19:47:20 by vavaas ### ########.fr */ +/* Updated: 2023/12/11 19:47:20 by vavaas ### ########.fr */ /* */ /* ************************************************************************** */ +#include #include #include #include