Fix row pitch being assumed to be 'width * 4'

This commit is contained in:
Cameron Gutman
2020-01-22 17:40:48 -08:00
parent 8c378eb27e
commit 6ec0cae2d0
4 changed files with 19 additions and 10 deletions

View File

@@ -40,6 +40,8 @@ public:
std::uint8_t *data {};
std::int32_t width {};
std::int32_t height {};
std::int32_t pixel_pitch {};
std::int32_t row_pitch {};
img_t() = default;
img_t(const img_t&) = delete;