From f13e6dc4acc64b4bd87474fcea7d1a5f810990fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Tue, 16 Apr 2024 21:53:53 +0200 Subject: [PATCH] chg: improve capture exit --- engine/joint/v4k.h | 2 +- engine/split/v4k_window.c | 2 +- engine/v4k.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index d9d64db..7fa8ca2 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -392989,7 +392989,7 @@ int window_swap() { if(!stbi_write_png(va("tests/out/%s.png", argv(0)), w, h, 3, rgb, 3 * w) ) { PANIC("!could not write screenshot file `%s`\n", screenshot_file); } - exit(0); + return 0; } return 1; diff --git a/engine/split/v4k_window.c b/engine/split/v4k_window.c index 1ced7b3..4b3d6ad 100644 --- a/engine/split/v4k_window.c +++ b/engine/split/v4k_window.c @@ -666,7 +666,7 @@ int window_swap() { if(!stbi_write_png(va("tests/out/%s.png", argv(0)), w, h, 3, rgb, 3 * w) ) { PANIC("!could not write screenshot file `%s`\n", screenshot_file); } - exit(0); + return 0; } return 1; diff --git a/engine/v4k.c b/engine/v4k.c index 78d1601..745d657 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -27529,7 +27529,7 @@ int window_swap() { if(!stbi_write_png(va("tests/out/%s.png", argv(0)), w, h, 3, rgb, 3 * w) ) { PANIC("!could not write screenshot file `%s`\n", screenshot_file); } - exit(0); + return 0; } return 1;