Change window icon function for macOS

This commit is contained in:
annes 2025-12-02 00:28:58 +08:00 committed by GitHub
parent dedc05a7a6
commit 817be0ab4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,7 +563,7 @@ void ClearWindowState(unsigned int flags)
void SetWindowIcon(Image image) void SetWindowIcon(Image image)
{ {
#ifdef __APPLE__ #ifdef __APPLE__
CocoaSetWindowIcon(image.data, image.width, image.height); CocoaSetDockIcon(image.data, image.width, image.height);
#else #else
if (image.data == NULL) if (image.data == NULL)
{ {