Mixer: Fix orientation of vertical sliders in Module_Parameter_Editor

This commit is contained in:
Jonathan Moore Liles 2009-12-25 13:16:27 -06:00
parent 4014b79c5c
commit 8b80c1eb01
1 changed files with 9 additions and 5 deletions

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 );