mirror of
https://github.com/glfw/glfw.git
synced 2026-01-15 02:25:31 +00:00
no more poopy 😥
This commit is contained in:
parent
7adc3c6c42
commit
f6da144b11
@ -1058,14 +1058,14 @@ void __CocoaSetDockIcon(unsigned char* data, int width, int height)
|
|||||||
void _glfwSetWindowIconCocoa(_GLFWwindow* window,
|
void _glfwSetWindowIconCocoa(_GLFWwindow* window,
|
||||||
int count, const GLFWimage* images)
|
int count, const GLFWimage* images)
|
||||||
{
|
{
|
||||||
/*_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
if (!window || count < 1)
|
||||||
"Cocoa: Regular windows do not have icons on macOS");*/
|
return;
|
||||||
if (count >= 1) {
|
|
||||||
const GLFWimage poopy = images[0];
|
const GLFWimage iconImage = images[0];
|
||||||
__CocoaSetDockIcon(poopy.pixels, poopy.width, poopy.height);
|
__CocoaSetDockIcon(iconImage.pixels, iconImage.width, iconImage.height);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void _glfwGetWindowPosCocoa(_GLFWwindow* window, int* xpos, int* ypos)
|
void _glfwGetWindowPosCocoa(_GLFWwindow* window, int* xpos, int* ypos)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user