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,
|
||||
int count, const GLFWimage* images)
|
||||
{
|
||||
/*_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
||||
"Cocoa: Regular windows do not have icons on macOS");*/
|
||||
if (count >= 1) {
|
||||
const GLFWimage poopy = images[0];
|
||||
__CocoaSetDockIcon(poopy.pixels, poopy.width, poopy.height);
|
||||
}
|
||||
if (!window || count < 1)
|
||||
return;
|
||||
|
||||
const GLFWimage iconImage = images[0];
|
||||
__CocoaSetDockIcon(iconImage.pixels, iconImage.width, iconImage.height);
|
||||
}
|
||||
|
||||
|
||||
void _glfwGetWindowPosCocoa(_GLFWwindow* window, int* xpos, int* ypos)
|
||||
{
|
||||
@autoreleasepool {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user