Skip to content

Commit

Permalink
Reversing y_offset direction to match previous OpenShot crop behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Sep 3, 2021
1 parent f9e5db6 commit 5f91ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects/Crop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ std::shared_ptr<openshot::Frame> Crop::GetFrame(std::shared_ptr<openshot::Frame>

// Loop through rows of pixels
for (int row = 0; row < frame_image->height(); row++) {
int adjusted_row = row + row_offset;
int adjusted_row = row - row_offset;
// Is this row visible?
if (adjusted_row >= top_bar_height && adjusted_row < (frame_image->height() - bottom_bar_height) && (copy_length + copy_offset > 0)) {
// Copy image (row by row, with offsets for x and y offset, and src/dst starting points for column filtering)
Expand Down

0 comments on commit 5f91ddc

Please sign in to comment.