summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoão Távora <[email protected]>2022-03-18 11:32:00 +0000
committerGitHub <[email protected]>2022-03-18 12:32:00 +0100
commit9ecbc465a934fdde9e3d69a709370a370bf193a0 (patch)
treea2c7ea71ad71befe76f65ea2dc5bac69d0925284
parent9723489cccabb84c53b2d9823e9b56c3ae6cd282 (diff)
downloadraylib-9ecbc465a934fdde9e3d69a709370a370bf193a0.tar.gz
raylib-9ecbc465a934fdde9e3d69a709370a370bf193a0.zip
Fix too many opening parens in src/rtextures.c (#2398)
This is a tiny change that makes code in src/rtextures.c "fold" correctly in editors/IDE's by matching the number of opening parenthesis to closing parenthesis. One of those editors is Emacs ;-)
-rw-r--r--src/rtextures.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index c4cf1903..d1e14db7 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -306,10 +306,9 @@ Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, i
{
Image image = { 0 };
-#if defined(SUPPORT_FILEFORMAT_PNG)
- if ((strcmp(fileType, ".png") == 0)
-#else
if ((false)
+#if defined(SUPPORT_FILEFORMAT_PNG)
+ || (strcmp(fileType, ".png") == 0)
#endif
#if defined(SUPPORT_FILEFORMAT_BMP)
|| (strcmp(fileType, ".bmp") == 0)