From 1cc134c3aa9e3ddb733d2006468a40cdd8b52349 Mon Sep 17 00:00:00 2001 From: Dan Hoang Vu Date: Wed, 24 Dec 2025 20:45:42 +0100 Subject: [PATCH] Fixed FLAG_IS_SET to check if all bits in the flag are set in the value --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 1f47efcb9..6f16b605b 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -273,7 +273,7 @@ #define FLAG_SET(n, f) ((n) |= (f)) #define FLAG_CLEAR(n, f) ((n) &= ~(f)) #define FLAG_TOGGLE(n, f) ((n) ^= (f)) -#define FLAG_IS_SET(n, f) (((n) & (f)) > 0) +#define FLAG_IS_SET(n, f) (((n) & (f)) == (f)) //---------------------------------------------------------------------------------- // Types and Structures Definition