From 06137147a34d412ae3198a97217e1c421b64dd74 Mon Sep 17 00:00:00 2001 From: Abhi <53955280+abhi-k9@users.noreply.github.com> Date: Wed, 12 Mar 2025 14:58:28 -0600 Subject: [PATCH] Simplify code logic for `glfwIsInitialized`. --- src/init.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/init.c b/src/init.c index cc682ea8..8e12377e 100644 --- a/src/init.c +++ b/src/init.c @@ -437,11 +437,9 @@ GLFWAPI void glfwTerminate(void) terminate(); } -GLFWAPI int glfwIsInitialized(void){ - if (_glfw.initialized) - return GLFW_TRUE; - - return GLFW_FALSE; +GLFWAPI int glfwIsInitialized(void) +{ + return _glfw.initialized; } GLFWAPI void glfwInitHint(int hint, int value)