aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-11 15:19:53 +0100
committerkdx <kikoodx@paranoici.org>2023-03-11 15:19:53 +0100
commit7dd6658d452fe8e447205cfc34594a537221b9a1 (patch)
treeeeda1d9e3796ba968d250b097b76e82d57583d6e
parent40dd764072a301f18257dc5f9a6b913daa272c9b (diff)
downloadtzr-7dd6658d452fe8e447205cfc34594a537221b9a1.tar.gz
figure than png is image
-rw-r--r--sources/TZR_LoadResource.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/TZR_LoadResource.c b/sources/TZR_LoadResource.c
index d63717c..8c78de9 100644
--- a/sources/TZR_LoadResource.c
+++ b/sources/TZR_LoadResource.c
@@ -7,7 +7,8 @@ static TZR_ResourceType deduce_type(const char *path)
const char *const path_extension = strrchr(path, '.');
if (path_extension == NULL)
return TZR_RES_RAW;
- if (strcasecmp(path_extension, ".bmp") == 0)
+ if (strcasecmp(path_extension, ".bmp") == 0 ||
+ strcasecmp(path_extension, ".png") == 0)
return TZR_RES_IMAGE;
return TZR_RES_RAW;
}