summaryrefslogtreecommitdiffhomepage
path: root/src/wall-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-22 21:38:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-22 21:38:29 +0100
commit8ea6924dda8d452bd870302a2c4e96f437ee5443 (patch)
treecbcbf3724a891013923266542688d278fff49c03 /src/wall-atlas.cpp
parent9bde31b07ada8aa5a3a2d30ffa904c38c3c0e09a (diff)
flush
Diffstat (limited to 'src/wall-atlas.cpp')
-rw-r--r--src/wall-atlas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index 9c700548..9c544896 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -22,7 +22,9 @@ void wall_atlas::validate(const wall_atlas& a, const ImageView2D& img) noexcept(
for (const auto& frame : a.raw_frame_array())
{
fm_soft_assert(frame.offset < Vector2ui{(unsigned)width, (unsigned)height});
- // todo check frame offset + size
+ fm_soft_assert(frame.offset.y() + iTILE_SIZE.z() <= height);
+ fm_soft_assert(frame.offset.x() < iTILE_SIZE2.x());
+ // todo check frame offset + size based on wall_atlas::expected_size()
}
const auto frame_count = a.raw_frame_array().size();