Skip to content

Commit

Permalink
Update default width of blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
chichian committed Jul 31, 2019
1 parent e1e2475 commit 562ffac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TSBlank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ using namespace rack;

#define BLANK_MIN_WIDTH (1 * RACK_GRID_WIDTH)
#define BLANK_TWO_SCREW_WIDTH (4 * RACK_GRID_WIDTH)
#define BLANK_DEFAULT_WIDTH (3 * RACK_GRID_WIDTH)
#define BUFFER_SIZE 512

struct ModuleResizeHandle : Widget {
Expand Down Expand Up @@ -55,7 +56,7 @@ struct ModuleResizeHandle : Widget {
};

struct TSBlankModule : Module {
int panelWidth = BLANK_MIN_WIDTH;
int panelWidth = BLANK_DEFAULT_WIDTH;

TSBlankModule()
{
Expand Down Expand Up @@ -107,7 +108,7 @@ struct TSBlankWidget : ModuleWidget {

TSBlankWidget(TSBlankModule *module) : ModuleWidget()
{
box.size = Vec(BLANK_MIN_WIDTH * 1, RACK_GRID_HEIGHT);
box.size = Vec(BLANK_DEFAULT_WIDTH, RACK_GRID_HEIGHT);
if (module)
{
box.size.x = module->panelWidth;
Expand Down

0 comments on commit 562ffac

Please sign in to comment.