Skip to content

Commit 0fd335a

Browse files
author
Chad Walker
committed
use source_image->width() and source_image->height() instead of scaled_source_width and scaled_source_height
1 parent f82c01d commit 0fd335a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Timeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ void Timeline::add_layer(std::shared_ptr<Frame> new_frame, Clip* source_clip, in
601601

602602
// Composite a new layer onto the image
603603
painter.setCompositionMode(QPainter::CompositionMode_SourceOver);
604-
painter.drawImage(0, 0, *source_image, crop_x * scaled_source_width, crop_y * scaled_source_height, crop_w * scaled_source_width, crop_h * scaled_source_height);
604+
painter.drawImage(0, 0, *source_image, crop_x * source_image->width(), crop_y * source_image->height(), crop_w * source_image->width(), crop_h * source_image->height());
605605

606606
// Draw frame #'s on top of image (if needed)
607607
if (source_clip->display != FRAME_DISPLAY_NONE) {

0 commit comments

Comments
 (0)