diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-05 20:47:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-05 20:47:15 +0100 |
commit | 794787093d1d29aa67a06223ed2e0c56ec90b9ce (patch) | |
tree | 900d3e5591b1187e864a4116bf957e0d0839cb77 /anim-crop-tool/atlas.hpp | |
parent | b97413c5561a59acac86e053a1aa8bd7905456f2 (diff) |
a
Diffstat (limited to 'anim-crop-tool/atlas.hpp')
-rw-r--r-- | anim-crop-tool/atlas.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/anim-crop-tool/atlas.hpp b/anim-crop-tool/atlas.hpp index 6da8fd63..21e1eff1 100644 --- a/anim-crop-tool/atlas.hpp +++ b/anim-crop-tool/atlas.hpp @@ -18,7 +18,7 @@ struct anim_atlas_entry struct anim_atlas_row { std::vector<anim_atlas_entry> data; - int max_height = 0, xpos = 0, ypos = 0; + unsigned max_height = 0, xpos = 0, ypos = 0; void add_entry(const anim_atlas_entry& x); }; @@ -26,13 +26,13 @@ struct anim_atlas_row class anim_atlas { std::vector<anim_atlas_row> rows = {{}}; - int ypos = 0, maxx = 0; + unsigned ypos = 0, maxx = 0; public: void add_entry(const anim_atlas_entry& x) { rows.back().add_entry(x); } void advance_row(); - Magnum::Vector2i offset() const noexcept; - Magnum::Vector2i size() const noexcept; + Magnum::Vector2ui offset() const noexcept; + Magnum::Vector2ui size() const noexcept; [[nodiscard]] bool dump(const std::filesystem::path& filename) const; }; |