Skip to content

Commit

Permalink
Added debug line for paint method
Browse files Browse the repository at this point in the history
  • Loading branch information
GuitarML committed Apr 8, 2021
1 parent 1b4e077 commit 02edf81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ ChameleonAudioProcessorEditor::~ChameleonAudioProcessorEditor()
//==============================================================================
void ChameleonAudioProcessorEditor::paint (Graphics& g)
{
// g.drawImageAt(background, 0, 0); // Debug Line: Redraw entire background image

// Redraw only the clipped part of the background image
juce::Rectangle<int> ClipRect = g.getClipBounds();
g.drawImage(background, ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight(), ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight());
Expand Down

0 comments on commit 02edf81

Please sign in to comment.