summaryrefslogtreecommitdiffhomepage
path: root/wall-tileset-tool/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wall-tileset-tool/main.cpp')
-rw-r--r--wall-tileset-tool/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp
index 9b07db75..6602fa33 100644
--- a/wall-tileset-tool/main.cpp
+++ b/wall-tileset-tool/main.cpp
@@ -72,7 +72,6 @@ constexpr inline int max_image_dimension = 4096;
bool convert_to_bgra32(const cv::Mat& src, cv::Mat4b& dest)
{
fm_assert(dest.empty() || dest.size == src.size);
- auto ch = src.channels(), tp = src.type();
switch (auto type = src.type())
{
@@ -165,6 +164,12 @@ bool do_group(state st, size_t i, size_t j, Group& new_group)
return false;
}
+ DBG << " " << Debug::nospace << count << (count == 1 ? "frame" : "frames");
+
+ for (auto i = 0uz; i < count; i++)
+ for (auto j = i+1; j < count; j++)
+ fm_assert(st.frames[i].size.y() == st.frames[j].size.y());
+
fm_assert(start + count == st.frames.size());
new_group.count = count;
new_group.index = start;