Browse Source

Don't override type() needlessly.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
da12ff957c
2 changed files with 1 additions and 5 deletions
  1. +1
    -1
      DPM.C
  2. +0
    -4
      DPM.H

+ 1
- 1
DPM.C View File

@@ -65,7 +65,7 @@ DPM::draw ( void )
if ( ! active_r() )
c = fl_inactive( c );

if ( _type == FL_HORIZONTAL )
if ( type() == FL_HORIZONTAL )
draw_box( box(), x() + (p * bw), y(), bw, h(), c );
else
draw_box( box(), x(), y() + h() - (p * bh), w(), bh, c );


+ 0
- 4
DPM.H View File

@@ -26,7 +26,6 @@
class DPM : public Meter
{

int _type;
int _divisions;
float _dim;

@@ -51,9 +50,6 @@ public:
bool divisions ( void ) const { return _divisions; }
void divisions ( int v ) { _divisions = v; }

int type ( void ) const { return _type; }
void type ( int v ) { _type = v; }

float dim ( void ) const { return _dim; }
void dim ( float v ) { _dim = v; redraw(); }



Loading…
Cancel
Save