From 034c4016ee12a4fdc53de702640fa6b302c4029c Mon Sep 17 00:00:00 2001 From: SplatTab <81938880+SplatTab@users.noreply.github.com> Date: Thu, 31 Mar 2022 15:40:47 -0500 Subject: [PATCH] Fix indentation --- src/rcore.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index e2e1faa5d..e2a719448 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1534,20 +1534,20 @@ void ClearWindowState(unsigned int flags) void SetWindowIcons(Image *icons, int n) { #if defined(PLATFORM_DESKTOP) - GLFWimage GLFWicons[n]; - for (size_t i = 0; i < n; i++) + GLFWimage GLFWicons[n]; + 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].pixels = (unsigned char *)icons[i].data; - } - else TRACELOG(LOG_WARNING, "GLFW: Window icon image at index [%d] must be in R8G8B8A8 format", i); + GLFWicons[i].width = icons[i].width; + 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); + } - // NOTE 1: The specified image data is copied before this function returns - glfwSetWindowIcon(CORE.Window.handle, n, GLFWicons); + // NOTE 1: The specified image data is copied before this function returns + glfwSetWindowIcon(CORE.Window.handle, n, GLFWicons); #endif }