aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkdx <kdx@42l.fr>2023-02-21 06:39:17 +0100
committerkdx <kdx@42l.fr>2023-02-21 06:39:17 +0100
commitf4ba3eebdd9bc3e13877ba6192b1ae6ec316d926 (patch)
treed2216154655940d42756e833f5f1c1a4b48d8bdc /main.c
parent9453525cf52cae6feae383e823b4577c67634cba (diff)
downloadtzr-f4ba3eebdd9bc3e13877ba6192b1ae6ec316d926.tar.gz
LoadResource detect filetype from extension
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5cd103d..aedf764 100644
--- a/main.c
+++ b/main.c
@@ -13,7 +13,7 @@ int main(int argc, char **argv)
/* Load assets. */
const TZR_Uint id0 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "res.bmp");
const TZR_Uint id1 = TZR_LoadResourceTyped(TZR_RES_RAW, "main.c");
- const TZR_Uint id2 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "smile.bmp");
+ const TZR_Uint id2 = TZR_LoadResource("smile.bmp");
if (id0 != 1 || id1 != 2 || id2 != 3)
return TZR_Quit(), 1;