Fixed redefinition of glfwSetWindowBadge() and glfwSetWindowBadgeString()

This commit is contained in:
GamesTrap 2024-06-12 20:51:02 +02:00
parent e9f57088e3
commit 780937fe33
No known key found for this signature in database
GPG Key ID: 31DFD452434ECDA3

View File

@ -631,30 +631,6 @@ GLFWAPI void glfwSetWindowBadgeString(GLFWwindow* handle, const char* string)
_glfw.platform.setWindowBadgeString(window, string); _glfw.platform.setWindowBadgeString(window, string);
} }
GLFWAPI void glfwSetWindowBadge(GLFWwindow* handle, int count)
{
_GLFWwindow* window = (_GLFWwindow*)handle;
_GLFW_REQUIRE_INIT();
if (count < 0)
{
_glfwInputError(GLFW_INVALID_VALUE, "Invalid badge count %d", count);
return;
}
_glfw.platform.setWindowBadge(window, count);
}
GLFWAPI void glfwSetWindowBadgeString(GLFWwindow* handle, const char* string)
{
_GLFWwindow* window = (_GLFWwindow*)handle;
_GLFW_REQUIRE_INIT();
_glfw.platform.setWindowBadgeString(window, string);
}
GLFWAPI void glfwGetWindowPos(GLFWwindow* handle, int* xpos, int* ypos) GLFWAPI void glfwGetWindowPos(GLFWwindow* handle, int* xpos, int* ypos)
{ {
if (xpos) if (xpos)