Skip to content

Commit

Permalink
Enable bottom right corner drag resizer in VST2 (#6009)
Browse files Browse the repository at this point in the history
* Enable bottom right corner drag resizer in VST2
  • Loading branch information
mkruselj authored Apr 2, 2022
1 parent e9fbd54 commit 13db419
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/surge-xt/SurgeSynthEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ SurgeSynthEditor::SurgeSynthEditor(SurgeSynthProcessor &p)

auto rg = BlockRezoom(this);
setSize(BASE_WINDOW_SIZE_X, BASE_WINDOW_SIZE_Y + yExtra);
setResizable(true, false); // For now
// add the bottom right corner resizer only for VST2
setResizable(true, processor.wrapperType == juce::AudioProcessor::wrapperType_VST);

adapter->open(nullptr);

Expand Down
28 changes: 14 additions & 14 deletions src/surge-xt/SurgeSynthProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,33 +451,33 @@ std::string SurgeSynthProcessor::paramClumpName(int clumpid)
switch (clumpid)
{
case 1:
return "Macro Parameters";
return "Macros";
case 2:
return "Global and FX";
return "Global & FX";
case 3:
return "Scene A Common";
return "A Common";
case 4:
return "Scene A Osc";
return "A Oscillators";
case 5:
return "Scene A Osc Mixer";
return "A Mixer";
case 6:
return "Scene A Filters";
return "A Filters";
case 7:
return "Scene A Envelopes";
return "A Envelopes";
case 8:
return "Scene A LFOs";
return "A LFOs";
case 9:
return "Scene B Common";
return "B Common";
case 10:
return "Scene B Osc";
return "B Oscillators";
case 11:
return "Scene B Osc Mixer";
return "B Mixer";
case 12:
return "Scene B Filters";
return "B Filters";
case 13:
return "Scene B Envelopes";
return "B Envelopes";
case 14:
return "Scene B LFOs";
return "B LFOs";
}
return "";
}
Expand Down
2 changes: 2 additions & 0 deletions src/surge-xt/gui/SurgeJUCELookAndFeel.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class SurgeJUCELookAndFeel : public juce::LookAndFeel_V4, public Surge::GUI::Ski
const juce::String &shortcutKeyText, const juce::Drawable *icon,
const juce::Colour *const textColourToUse) override;

void drawCornerResizer(juce::Graphics &g, int w, int h, bool, bool) override{};

enum SurgeColourIds
{
componentBgStart = 0x3700001,
Expand Down

0 comments on commit 13db419

Please sign in to comment.