diff options
| author | João Távora <[email protected]> | 2022-03-18 11:32:00 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-18 12:32:00 +0100 |
| commit | 9ecbc465a934fdde9e3d69a709370a370bf193a0 (patch) | |
| tree | a2c7ea71ad71befe76f65ea2dc5bac69d0925284 /src | |
| parent | 9723489cccabb84c53b2d9823e9b56c3ae6cd282 (diff) | |
| download | raylib-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 ;-)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtextures.c | 5 |
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) |
