summaryrefslogtreecommitdiffhomepage
path: root/anim-crop-tool/atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-10 16:04:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-10 16:04:57 +0100
commit8dfa3d885b34f9d9cc20b47890268cedb9fb217f (patch)
tree208400aa58f825730fc6220dea76eb1780e8122f /anim-crop-tool/atlas.cpp
parentb1d66390ca5d11e48f58bb87f49b0f9da5338ca0 (diff)
flush it
Diffstat (limited to 'anim-crop-tool/atlas.cpp')
-rw-r--r--anim-crop-tool/atlas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/anim-crop-tool/atlas.cpp b/anim-crop-tool/atlas.cpp
index d088e733..613792e7 100644
--- a/anim-crop-tool/atlas.cpp
+++ b/anim-crop-tool/atlas.cpp
@@ -44,7 +44,7 @@ Magnum::Vector2ui anim_atlas::size() const noexcept
return {std::max(maxx, row.xpos), ypos + row.max_height};
}
-bool anim_atlas::dump(const std::filesystem::path& filename) const
+bool anim_atlas::dump(StringView filename) const
{
auto sz = size();
cv::Mat4b mat((int)sz[1], (int)sz[0]);
@@ -59,5 +59,5 @@ bool anim_atlas::dump(const std::filesystem::path& filename) const
x.mat.copyTo(mat(roi));
}
- return cv::imwrite(filename.string(), mat);
+ return cv::imwrite(filename.data(), mat);
}