Don't override type() needlessly.
This commit is contained in:
parent
56c04b6e30
commit
da12ff957c
2
DPM.C
2
DPM.C
|
@ -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 );
|
||||
|
|
4
DPM.H
4
DPM.H
|
@ -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…
Reference in New Issue