Просмотр исходного кода

Merge pull request #1 from annes12345678910/patch-2

Patch 2
pull/5425/head
annes 2 месяцев назад
committed by GitHub
Родитель
Сommit
5ea24aced7
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 5 добавлений и 1 удалений
  1. +5
    -1
      src/platforms/rcore_desktop_glfw.c

+ 5
- 1
src/platforms/rcore_desktop_glfw.c Просмотреть файл

@ -101,7 +101,7 @@
#endif
#if defined(__APPLE__)
#include <unistd.h> // Required for: usleep()
#include "_cocoalayer.h"
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition
void *glfwGetCocoaWindow(GLFWwindow* handle);
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow()
@ -584,6 +584,9 @@ void ClearWindowState(unsigned int flags)
// NOTE 2: Image is scaled by the OS for all required sizes
void SetWindowIcon(Image image)
{
#ifdef __APPLE__
CocoaSetDockIcon(image.data, image.width, image.height);
#else
if (image.data == NULL)
{
// Revert to the default window icon, pass in an empty image array
@ -605,6 +608,7 @@ void SetWindowIcon(Image image)
}
else TRACELOG(LOG_WARNING, "GLFW: Window icon image must be in R8G8B8A8 pixel format");
}
#endif
}
// Set icon for window, multiple images

Загрузка…
Отмена
Сохранить