You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Reversing y_offset direction to match previous OpenShot crop behavior
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user