Skip to content

Commit

Permalink
Move the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidauminh committed Feb 7, 2025
1 parent 502265d commit ac1b869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/clips/SampleClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ void SampleClipView::paintEvent( QPaintEvent * pe )

setNeedsUpdate( false );

// Use the clip's height to avoid artifacts when rendering while something else is overlaying the clip.
const auto viewPortRect = QRect(0, 0, pe->rect().width(), rect().height());

m_paintPixmapXPosition = pe->rect().x();
Expand Down Expand Up @@ -284,7 +285,6 @@ void SampleClipView::paintEvent( QPaintEvent * pe )
{
const auto param = SampleThumbnail::VisualizeParameters{
.sampleRect = QRect(offsetStart - m_paintPixmapXPosition, spacing, sampleLength, height() - spacing),
// Use the clips's height to avoid artifects when rendering while something else is over the clip.
.viewportRect = viewPortRect,
.amplification = sample.amplification(),
.reversed = sample.reversed()
Expand Down

0 comments on commit ac1b869

Please sign in to comment.