Replace GL booleans with public macros

This commit is contained in:
Camilla Berglund
2015-08-23 19:30:04 +02:00
parent 13fbb4748a
commit 0eccf75f65
71 changed files with 581 additions and 557 deletions
+4 -4
View File
@@ -100,7 +100,7 @@ static void openJoystickDevice(const char* path)
_glfw.linux_js.js[joy].axes = calloc(axisCount, sizeof(float));
_glfw.linux_js.js[joy].buttons = calloc(buttonCount, 1);
_glfw.linux_js.js[joy].present = GL_TRUE;
_glfw.linux_js.js[joy].present = GLFW_TRUE;
#endif // __linux__
}
@@ -199,7 +199,7 @@ int _glfwInitJoysticks(void)
_glfwInputError(GLFW_PLATFORM_ERROR,
"Linux: Failed to initialize inotify: %s",
strerror(errno));
return GL_FALSE;
return GLFW_FALSE;
}
// HACK: Register for IN_ATTRIB as well to get notified when udev is done
@@ -220,7 +220,7 @@ int _glfwInitJoysticks(void)
if (regcomp(&_glfw.linux_js.regex, "^js[0-9]\\+$", 0) != 0)
{
_glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex");
return GL_FALSE;
return GLFW_FALSE;
}
dir = opendir(dirname);
@@ -253,7 +253,7 @@ int _glfwInitJoysticks(void)
#endif // __linux__
return GL_TRUE;
return GLFW_TRUE;
}
// Close all opened joystick handles