From b7799bc6dc284f035f46b3f4be7f49f2103b294b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Nov 2023 13:17:16 +0100 Subject: a2 --- wall-tileset-tool/main.cpp | 8 ++++++-- wall-tileset-tool/main.hpp | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'wall-tileset-tool') diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp index ac4a7498..4fc62b9d 100644 --- a/wall-tileset-tool/main.cpp +++ b/wall-tileset-tool/main.cpp @@ -2,7 +2,6 @@ #include "compat/assert.hpp" #include "compat/sysexits.hpp" #include "compat/fix-argv0.hpp" -#include "compat/strerror.hpp" //#include "compat/format.hpp" #include "compat/debug.hpp" #include "src/wall-atlas.hpp" @@ -42,7 +41,7 @@ Vector2i get_buffer_size(const wall_atlas_def& a) for (auto j = 0uz; j < (size_t)Group_::COUNT; j++) { const auto& group = (dir.*(Direction::groups[j].member)); - if (group.is_empty()) + if (!group.is_defined) continue; auto val = wall_atlas::expected_size(a.header.depth, (Group_)j); size = Math::max(size, val); @@ -202,6 +201,11 @@ using namespace floormat::wall_tool; int main(int argc, char** argv) { + auto s = "foo"_s; + static_assert(std::is_same_v); + static_assert(std::is_same_v); + static_assert(std::is_same_v); + argv[0] = fix_argv0(argv[0]); auto [opts, args, opts_ok] = parse_cmdline(argc, argv); if (!opts_ok) diff --git a/wall-tileset-tool/main.hpp b/wall-tileset-tool/main.hpp index b826d634..d6403ccf 100644 --- a/wall-tileset-tool/main.hpp +++ b/wall-tileset-tool/main.hpp @@ -4,7 +4,10 @@ namespace cv { template class Mat_; template class Vec; +typedef Vec Vec3b; typedef Vec Vec4b; +typedef Mat_ Mat1b; +typedef Mat_ Mat3b; typedef Mat_ Mat4b; } // namespace cv -- cgit v1.2.3