Fix indentation

This commit is contained in:
SplatTab 2022-03-31 15:40:47 -05:00 committed by GitHub
parent 2723becd0b
commit 034c4016ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1534,20 +1534,20 @@ void ClearWindowState(unsigned int flags)
void SetWindowIcons(Image *icons, int n) void SetWindowIcons(Image *icons, int n)
{ {
#if defined(PLATFORM_DESKTOP) #if defined(PLATFORM_DESKTOP)
GLFWimage GLFWicons[n]; GLFWimage GLFWicons[n];
for (size_t i = 0; i < n; i++) for (size_t i = 0; i < n; i++)
{
if (icons[i].format == PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)
{ {
if (icons[i].format == PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) GLFWicons[i].width = icons[i].width;
{ GLFWicons[i].height = icons[i].height;
GLFWicons[i].width = icons[i].width; GLFWicons[i].pixels = (unsigned char *)icons[i].data;
GLFWicons[i].height = icons[i].height;
GLFWicons[i].pixels = (unsigned char *)icons[i].data;
}
else TRACELOG(LOG_WARNING, "GLFW: Window icon image at index [%d] must be in R8G8B8A8 format", i);
} }
else TRACELOG(LOG_WARNING, "GLFW: Window icon image at index [%d] must be in R8G8B8A8 format", i);
}
// NOTE 1: The specified image data is copied before this function returns // NOTE 1: The specified image data is copied before this function returns
glfwSetWindowIcon(CORE.Window.handle, n, GLFWicons); glfwSetWindowIcon(CORE.Window.handle, n, GLFWicons);
#endif #endif
} }