the video slider can no longer return values outside its range and is initialize to 0-1, pos 0
Originally committed to SVN as r77.
This commit is contained in:
parent
fd0cd9c045
commit
38f62c6906
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,7 @@ VideoSlider::VideoSlider (wxWindow* parent, wxWindowID id)
|
|||
Display = NULL;
|
||||
SetClientSize(20,25);
|
||||
locked = false;
|
||||
SetRange(0,1);
|
||||
}
|
||||
|
||||
|
||||
|
@ -80,9 +81,12 @@ void VideoSlider::SetValue(int value) {
|
|||
/////////////
|
||||
// Set range
|
||||
void VideoSlider::SetRange(int from,int to) {
|
||||
wxASSERT(from <= to);
|
||||
|
||||
locked = false;
|
||||
min = from;
|
||||
max = to;
|
||||
val = from;
|
||||
UpdateImage();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue