Commit 8afa30a9 authored by Cyril Deguet's avatar Cyril Deguet
Browse files

* fixed the volume slider bug

parent d9ddadd0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* slider.cpp: Slider control * slider.cpp: Slider control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: slider.cpp,v 1.7 2003/04/21 21:51:16 asmax Exp $ * $Id: slider.cpp,v 1.8 2003/04/22 17:56:44 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -321,7 +321,6 @@ bool ControlSlider::MouseScroll( int x, int y, int direction ) ...@@ -321,7 +321,6 @@ bool ControlSlider::MouseScroll( int x, int y, int direction )
return false; return false;
int val = Value; int val = Value;
switch( direction ) switch( direction )
{ {
case MOUSE_SCROLL_DOWN: case MOUSE_SCROLL_DOWN:
...@@ -334,6 +333,9 @@ bool ControlSlider::MouseScroll( int x, int y, int direction ) ...@@ -334,6 +333,9 @@ bool ControlSlider::MouseScroll( int x, int y, int direction )
} }
MoveCursor( val ); MoveCursor( val );
UpdateEvent->SetParam2( GetCursorPosition() );
UpdateEvent->SendEvent();
return true; return true;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class * gtk2_window.cpp: GTK2 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.27 2003/04/21 21:51:16 asmax Exp $ * $Id: gtk2_window.cpp,v 1.28 2003/04/22 17:56:44 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -176,7 +176,6 @@ bool GTK2Window::ProcessOSEvent( Event *evt ) ...@@ -176,7 +176,6 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
gdk_window_get_pointer( gWnd, 0, 0, 0 ); gdk_window_get_pointer( gWnd, 0, 0, 0 );
return true; return true;
case GDK_BUTTON_PRESS: case GDK_BUTTON_PRESS:
// Raise all the windows // Raise all the windows
for( list<SkinWindow *>::const_iterator win = for( list<SkinWindow *>::const_iterator win =
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class * vlcproc.cpp: VlcProc class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.14 2003/04/21 21:51:16 asmax Exp $ * $Id: vlcproc.cpp,v 1.15 2003/04/22 17:56:44 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -573,10 +573,6 @@ void VlcProc::ChangeVolume( unsigned int msg, long param ) ...@@ -573,10 +573,6 @@ void VlcProc::ChangeVolume( unsigned int msg, long param )
} }
aout_VolumeGet( p_intf, &volume ); aout_VolumeGet( p_intf, &volume );
OSAPI_PostMessage( NULL, CTRL_SET_SLIDER,
(unsigned int)
p_intf->p_sys->p_theme->EvtBank->Get( "volume_refresh" ),
(int)( volume * SLIDER_RANGE / AOUT_VOLUME_MAX ) );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment