summaryrefslogtreecommitdiffhomepage
path: root/anim-crop-tool
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-07 10:31:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-07 10:31:39 +0100
commita106f669cc6beea67fc0a98d3191a4404d4aecef (patch)
tree854d7fc5a74efb86e486be9576515d031cc1440b /anim-crop-tool
parent672f67c61f275dea196d4c3fbc5ffe7405dc43d3 (diff)
fix build with no libpng
Diffstat (limited to 'anim-crop-tool')
-rw-r--r--anim-crop-tool/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp
index ad92780f..9e1e971c 100644
--- a/anim-crop-tool/main.cpp
+++ b/anim-crop-tool/main.cpp
@@ -292,7 +292,7 @@ int main(int argc, char** argv)
const std::string base_name = anim_info.object_name + "_" + anim_info.anim_name;
- if (auto pathname = opts.output_dir/(base_name + ".png"); !atlas.dump(pathname)) {
+ if (auto pathname = opts.output_dir/(base_name + ".tga"); !atlas.dump(pathname)) {
Error{} << "error: failed writing image to" << pathname << ":"
<< std::strerror(errno); // NOLINT(concurrency-mt-unsafe)
return EX_CANTCREAT;