summaryrefslogtreecommitdiffhomepage
path: root/wall-tileset-tool
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-28 04:52:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-28 04:52:25 +0100
commit16f1261264f2a4d65753fb63471e0a1519377192 (patch)
treef2910a4c4ef4cca9ddcd8e3e179dc5a16c75e1a0 /wall-tileset-tool
parent8171d7f7cbc097c58a2097e14ce814d6a97d54bf (diff)
a
Diffstat (limited to 'wall-tileset-tool')
-rw-r--r--wall-tileset-tool/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp
index 4736157a..8fc907ae 100644
--- a/wall-tileset-tool/main.cpp
+++ b/wall-tileset-tool/main.cpp
@@ -122,7 +122,7 @@ bool do_group(state st, size_t i, size_t j, Group& new_group)
return false;
}
- cv::Mat mat = cv::imread(cv::String{filename.data(), filename.size()}), mat2;
+ cv::Mat mat = cv::imread(cv::String{filename.data(), filename.size()}, cv::IMREAD_ANYCOLOR), mat2;
if ((Group_)j == Group_::top)
{
cv::rotate(mat, mat2, cv::ROTATE_90_COUNTERCLOCKWISE);
@@ -130,7 +130,7 @@ bool do_group(state st, size_t i, size_t j, Group& new_group)
swap(mat, mat2);
}
- if (Vector2ui((unsigned)mat.cols, (unsigned)mat.rows) != expected_size) [[unlikely]]
+ if (Vector2ui{(unsigned)mat.cols, (unsigned)mat.rows} != expected_size) [[unlikely]]
{
ERR << "fatal: wrong image size, expected size"
<< resolution{expected_size} << colon(',')