fixed warnings when compiled with gcc4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19272 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -184,7 +184,7 @@ VolumeSlider::VolumeSlider(BRect frame, bool dontBeep, int32 volumeWhich)
|
|||||||
if (fMixerParam == NULL)
|
if (fMixerParam == NULL)
|
||||||
value = -1;
|
value = -1;
|
||||||
fSlider = new SliderView(box->Bounds().InsetByCopy(1, 1), new BMessage(VOLUME_CHANGED),
|
fSlider = new SliderView(box->Bounds().InsetByCopy(1, 1), new BMessage(VOLUME_CHANGED),
|
||||||
errString == NULL ? "Volume" : errString, B_FOLLOW_LEFT | B_FOLLOW_TOP, value);
|
errString == NULL ? "Volume" : errString, B_FOLLOW_LEFT | B_FOLLOW_TOP, (int32)value);
|
||||||
box->AddChild(fSlider);
|
box->AddChild(fSlider);
|
||||||
|
|
||||||
fSlider->SetTarget(this);
|
fSlider->SetTarget(this);
|
||||||
@@ -366,7 +366,7 @@ SliderView::MouseMoved(BPoint point, uint32 transit, const BMessage *message)
|
|||||||
float v = MIN(MAX(point.x, 11), 192);
|
float v = MIN(MAX(point.x, 11), 192);
|
||||||
v = (v - 11) / (192-11) * 100;
|
v = (v - 11) / (192-11) * 100;
|
||||||
v = MAX(MIN(v,100), 0);
|
v = MAX(MIN(v,100), 0);
|
||||||
SetValue(v);
|
SetValue((int32)v);
|
||||||
Draw(Bounds());
|
Draw(Bounds());
|
||||||
Flush();
|
Flush();
|
||||||
|
|
||||||
@@ -385,7 +385,7 @@ SliderView::MouseUp(BPoint point)
|
|||||||
float v = MIN(MAX(point.x, 11), 192);
|
float v = MIN(MAX(point.x, 11), 192);
|
||||||
v = (v - 11) / (192-11) * 100;
|
v = (v - 11) / (192-11) * 100;
|
||||||
v = MAX(MIN(v,100), 0);
|
v = MAX(MIN(v,100), 0);
|
||||||
SetValue(v);
|
SetValue((int32)v);
|
||||||
}
|
}
|
||||||
|
|
||||||
Invoke();
|
Invoke();
|
||||||
|
|||||||
Reference in New Issue
Block a user