Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 59fbf88

Browse files
committed
Fix a bug in the fix size parameter.
1 parent 68ecdf0 commit 59fbf88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pipeline/filter_decode_png.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace todds::pipeline::impl {
1818
std::unique_ptr<mipmap_image> fix_image_size(mipmap_image& original, bool mipmaps) {
1919
const auto& original_img = original.get_image(0UL);
2020
const auto new_width = util::next_divisible_by_4(original_img.width());
21-
const auto new_height = util::next_divisible_by_4(original_img.width());
21+
const auto new_height = util::next_divisible_by_4(original_img.height());
2222
std::unique_ptr<mipmap_image> resized =
2323
std::make_unique<mipmap_image>(original.file_index(), new_width, new_height, mipmaps);
2424

0 commit comments

Comments
 (0)