From 27f1bb5338a8962bc20571a569121ef3169d4bf2 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 13 Nov 2006 19:59:56 +0000 Subject: [PATCH] fixed warnings when compiled with gcc4 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19272 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/desklink/VolumeSlider.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/desklink/VolumeSlider.cpp b/src/bin/desklink/VolumeSlider.cpp index 19155614ec..9072629bbd 100644 --- a/src/bin/desklink/VolumeSlider.cpp +++ b/src/bin/desklink/VolumeSlider.cpp @@ -184,7 +184,7 @@ VolumeSlider::VolumeSlider(BRect frame, bool dontBeep, int32 volumeWhich) if (fMixerParam == NULL) value = -1; 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); fSlider->SetTarget(this); @@ -366,7 +366,7 @@ SliderView::MouseMoved(BPoint point, uint32 transit, const BMessage *message) float v = MIN(MAX(point.x, 11), 192); v = (v - 11) / (192-11) * 100; v = MAX(MIN(v,100), 0); - SetValue(v); + SetValue((int32)v); Draw(Bounds()); Flush(); @@ -385,7 +385,7 @@ SliderView::MouseUp(BPoint point) float v = MIN(MAX(point.x, 11), 192); v = (v - 11) / (192-11) * 100; v = MAX(MIN(v,100), 0); - SetValue(v); + SetValue((int32)v); } Invoke();