Skip to content

Commit

Permalink
custom name for TextBox
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Apr 27, 2024
1 parent 6050379 commit 4124baa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ PATHSET_CUSTOM = PitchShifter
PLUGIN_FILES += $(filter-out PdArray/src/plugin.cpp,$(wildcard PdArray/src/*.cpp))

# modules/types which are present in other plugins
PDARRAY_CUSTOM = MAX_POLY_CHANNELS draw
PDARRAY_CUSTOM = MAX_POLY_CHANNELS TextBox

# --------------------------------------------------------------
# PinkTrombone
Expand Down
4 changes: 4 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,10 @@ extern Model* modelBlankPanel;

// PdArray
#define MAX_POLY_CHANNELS PDARRAYMAX_POLY_CHANNELS
#define TextBox PdArrayTextBox
#include "PdArray/src/plugin.hpp"
#undef PDARRAYMAX_POLY_CHANNELS
#undef Textbox

// PinkTrombone
#include "PinkTrombone/src/plugin.hpp"
Expand Down Expand Up @@ -2928,10 +2930,12 @@ static void initStatic__PdArray()
if (spl.ok())
{
#define MAX_POLY_CHANNELS PDARRAYMAX_POLY_CHANNELS
#define TextBox PdArrayTextBox
p->addModel(modelArray);
p->addModel(modelMiniramp);
p->addModel(modelMinistep);
#undef PDARRAYMAX_POLY_CHANNELS
#undef TextBox
}
}

Expand Down

0 comments on commit 4124baa

Please sign in to comment.