==============================================================================
| 582 | |
| 583 | //============================================================================== |
| 584 | void NeuralPiAudioProcessorEditor::paint (Graphics& g) |
| 585 | { |
| 586 | // Workaround for graphics on Windows builds (clipping code doesn't work correctly on Windows) |
| 587 | #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) |
| 588 | g.drawImageAt(background, 0, 0); // Debug Line: Redraw entire background image |
| 589 | #else |
| 590 | // Redraw only the clipped part of the background image |
| 591 | juce::Rectangle<int> ClipRect = g.getClipBounds(); |
| 592 | g.drawImage(background, ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight(), ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight()); |
| 593 | #endif |
| 594 | |
| 595 | } |
| 596 | |
| 597 | void NeuralPiAudioProcessorEditor::resized() |
| 598 | { |
nothing calls this directly
no outgoing calls
no test coverage detected