| 56 | } |
| 57 | |
| 58 | void Control::paint(juce::Graphics &g) { |
| 59 | int x = 0, y = 0; |
| 60 | if (image_.getHeight() == height_) { |
| 61 | x = frame_ * width_; |
| 62 | } else { |
| 63 | y = frame_ * height_; |
| 64 | } |
| 65 | g.drawImage(image_, 0, 0, width_, height_, x, y, width_, height_, false); |
| 66 | } |
| 67 | |
| 68 | void Control::parameterDidChange(const Parameter &) { |
| 69 | int frame = int(float(frames_ - 1) * parameter.getNormalisedValue()); |
nothing calls this directly
no outgoing calls
no test coverage detected