Skip to content

Commit

Permalink
fix mispaint on UI reopen (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreya-Autumn authored Dec 8, 2024
1 parent 49a8f77 commit bef8d18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/LatticeComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ struct LatticeComponent : juce::Component
}
}

LatticeComponent(std::pair<int, int> *c, int *v) { update(c, v); }

void update(std::pair<int, int> *c, int *v)
{
for (int i = 0; i < 12; ++i)
Expand Down
2 changes: 1 addition & 1 deletion src/LatticesEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//==============================================================================
LatticesEditor::LatticesEditor(LatticesProcessor &p) : juce::AudioProcessorEditor(&p), processor(p)
{
latticeComponent = std::make_unique<LatticeComponent>(p.coOrds);
latticeComponent = std::make_unique<LatticeComponent>(p.coOrds, p.currentVisitors->dimensions);
addAndMakeVisible(*latticeComponent);
latticeComponent->setBufferedToImage(true);

Expand Down

0 comments on commit bef8d18

Please sign in to comment.