diff options
author | kdx <kikoodx@paranoici.org> | 2023-02-14 13:43:25 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-02-14 13:52:07 +0100 |
commit | 2239db089fd6fa9156c42662b8cdd697530ec72e (patch) | |
tree | f60bc3c919a4b7863b231c77e9151c6e4268499a /main.c | |
parent | fec8726cb30ba837669a42a2e6c1ac81356f8216 (diff) | |
download | tzr-2239db089fd6fa9156c42662b8cdd697530ec72e.tar.gz |
another resource
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -7,8 +7,8 @@ int main(int argc, char **argv) /* Initialization. */ TZR_Config cfg = { - .width = 512, - .height = 512, + .width = 256, + .height = 256, .target_fps = 60, .title = "TZR demo" }; @@ -18,7 +18,8 @@ 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"); - if (id0 == 0 || id1 == 0) + const TZR_Uint id2 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "smile.bmp"); + if (id0 == 0 || id1 == 0 || id2 == 0) return TZR_Quit(), 1; /* Print assets paths. */ @@ -34,7 +35,7 @@ int main(int argc, char **argv) TZR_DrawClear(); TZR_DrawSetColor(255, 255, 255, 255); TZR_DrawImage(id0, x, 0); - TZR_DrawImage(id0, 0, x); + TZR_DrawImage(id2, 0, x); TZR_DrawEnd(); } return TZR_Quit(), 0; |