aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-12-16 03:23:01 +0100
committerkdx <kikoodx@paranoici.org>2023-12-16 03:23:03 +0100
commit221a7d0618b4f8b6af19b089f49818806fe1e1b3 (patch)
tree688211a87d03ba3a1acbb527b0f434aa3533aa45 /main.c
parent1546f59de4e15fd6653cce36b8719c1c9c0fdd8d (diff)
downloadtzr-221a7d0618b4f8b6af19b089f49818806fe1e1b3.tar.gz
resizable viewport
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9bd302b..8d06221 100644
--- a/main.c
+++ b/main.c
@@ -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()