diff options
author | kdx <kikoodx@paranoici.org> | 2023-12-16 03:23:01 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-12-16 03:23:03 +0100 |
commit | 221a7d0618b4f8b6af19b089f49818806fe1e1b3 (patch) | |
tree | 688211a87d03ba3a1acbb527b0f434aa3533aa45 /main.c | |
parent | 1546f59de4e15fd6653cce36b8719c1c9c0fdd8d (diff) | |
download | tzr-221a7d0618b4f8b6af19b089f49818806fe1e1b3.tar.gz |
resizable viewport
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -60,6 +60,8 @@ main_loop(void *udata) if (TZR_IsKeyPressed(SDL_SCANCODE_SPACE)) TZR_PlaySound(id2); + TZR_SetViewportSize(256 + x, 256 + y); + if (TZR_DrawBegin() || TZR_DrawSetColor(0.0f, 0.0f, 0.0f) || TZR_DrawClear() |