Browse Source

Mixer: Fix orientation of vertical sliders in Module_Parameter_Editor

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
8b80c1eb01
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      Mixer/Module_Parameter_Editor.C

+ 9
- 5
Mixer/Module_Parameter_Editor.C View File

@@ -178,21 +178,25 @@ Module_Parameter_Editor::make_controls ( void )
{
Fl_Value_Slider *o = new Fl_Value_Slider( 0, 0, 120, 24, p->name() );
w = o;
if ( p->hints.ranged )
{
o->minimum( p->hints.minimum );
o->maximum( p->hints.maximum );
}

if ( mode_choice->value() == 1 )
{
o->type( FL_HORIZONTAL );
o->size( 120, 24 );
if ( p->hints.ranged )
{
o->minimum( p->hints.minimum );
o->maximum( p->hints.maximum );
}
}
else
{
o->type( FL_VERTICAL );
o->size( 24, 120 );
/* have to reverse the meaning of these to get the
* orientation of the slider right */
o->maximum( p->hints.minimum );
o->minimum( p->hints.maximum );
}

o->slider( FL_THIN_UP_BOX );


Loading…
Cancel
Save