diff --git a/rotation.cpp b/rotation.cpp index 2121c2d..f43b468 100644 --- a/rotation.cpp +++ b/rotation.cpp @@ -266,7 +266,6 @@ Image* rotate(Image const& src, double angle) int64_t const src_qheight = (int64_t) src.height * q_pos; unsigned int const src_limit = src.width * src.height * src.pixel_size; - size_t const buffer_step = rotated->pixel_size; int const width = rotated->width; int const height = rotated->height; @@ -287,7 +286,7 @@ Image* rotate(Image const& src, double angle) } src_rotated_point += qdx; - buffer_index += buffer_step; + buffer_index += 1; // pixel_size } }