Skip to content

Commit

Permalink
plugin: reduce flicker by rendering with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepVanlier committed Feb 18, 2025
1 parent 02b72f3 commit d19f33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/components/graphics_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void YsfxGraphicsView::paint(juce::Graphics &g)
}

g.setOpacity(1.0f);
g.drawImageTransformed(image, juce::AffineTransform::translation(0.0f, 0.0f).scaled(m_outputScalingFactor.load() / m_pixelFactor.load()), false);
g.drawImageTransformed(image, juce::AffineTransform::scale(m_outputScalingFactor.load() / m_pixelFactor.load()).translated(0.5f, 0.5f), false);
}

void YsfxGraphicsView::resized()
Expand Down

0 comments on commit d19f33c

Please sign in to comment.