chg: improve capture exit

main
Dominik Madarász 2024-04-16 21:53:53 +02:00
parent c1673be3fe
commit f13e6dc4ac
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;