diff options
author | kdx <kikoodx@paranoici.org> | 2023-02-14 13:35:12 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-02-14 13:35:12 +0100 |
commit | b46579d17a5239eb78ae159943e9aa11e7a81ee4 (patch) | |
tree | 098265539ccd41455edb8626142532b2c1e4fe6d /main.c | |
parent | e5c0ffb9921be3b5b16751e00c52e499f4230982 (diff) | |
download | tzr-b46579d17a5239eb78ae159943e9aa11e7a81ee4.tar.gz |
demo edit with gimp
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |