mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Fixed redefinition of glfwSetWindowBadge() and glfwSetWindowBadgeString()
This commit is contained in:
parent
e9f57088e3
commit
780937fe33
24
src/window.c
24
src/window.c
@ -631,30 +631,6 @@ GLFWAPI void glfwSetWindowBadgeString(GLFWwindow* handle, const char* 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)
|
||||
{
|
||||
if (xpos)
|
||||
|
Loading…
Reference in New Issue
Block a user