Mixer/DPM: Fix reposition interfering with optimized drawing.
This commit is contained in:
parent
123d45c1ae
commit
b31eef9c36
|
@ -116,12 +116,15 @@ DPM::draw_label ( void )
|
|||
void
|
||||
DPM::resize ( int X, int Y, int W, int H )
|
||||
{
|
||||
int old_segments = _segments;
|
||||
|
||||
if ( type() == FL_HORIZONTAL )
|
||||
_segments = floor( W / (double)_pixels_per_segment );
|
||||
else
|
||||
_segments = floor( H / (double)_pixels_per_segment );
|
||||
|
||||
_last_drawn_hi_segment = 0;
|
||||
if ( old_segments != _segments )
|
||||
_last_drawn_hi_segment = 0;
|
||||
|
||||
Fl_Widget::resize( X, Y, W, H );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue