aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-02-14 13:35:12 +0100
committerkdx <kikoodx@paranoici.org>2023-02-14 13:35:12 +0100
commitb46579d17a5239eb78ae159943e9aa11e7a81ee4 (patch)
tree098265539ccd41455edb8626142532b2c1e4fe6d /main.c
parente5c0ffb9921be3b5b16751e00c52e499f4230982 (diff)
downloadtzr-b46579d17a5239eb78ae159943e9aa11e7a81ee4.tar.gz
demo edit with gimp
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.c b/main.c
index bc4a47a..401c0b8 100644
--- a/main.c
+++ b/main.c
@@ -14,14 +14,12 @@ int main(int argc, char **argv)
};
if (TZR_Init(&cfg))
return 1;
- if (atexit(TZR_Quit))
- return TZR_Quit(), 1;
/* Load assets. */
const TZR_Uint id0 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "res.bmp");
const TZR_Uint id1 = TZR_LoadResourceTyped(TZR_RES_RAW, "main.c");
if (id0 == 0 || id1 == 0)
- return 1;
+ return TZR_Quit(), 1;
/* Print assets paths. */
printf("%s %s\n", TZR_GetResourcePath(id0), TZR_GetResourcePath(id1));
@@ -36,5 +34,5 @@ int main(int argc, char **argv)
TZR_DrawImage(id0, 0, x);
TZR_DrawEnd();
}
- return 0;
+ return TZR_Quit(), 0;
}