Fix indentation
This commit is contained in:
parent
2723becd0b
commit
034c4016ee
22
src/rcore.c
22
src/rcore.c
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user