Skip to content

Commit

Permalink
Fix too many opening parens in src/rtextures.c (#2398)
Browse files Browse the repository at this point in the history
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 ;-)
  • Loading branch information
joaotavora committed Mar 18, 2022
1 parent 9723489 commit 9ecbc46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ecbc46

Please sign in to comment.