Commit ce066e7c authored by Emmanuel Puig's avatar Emmanuel Puig

* slider.cpp: fixed mouse down refresh bug
* theme.cpp: removed debug text
parent 6e950fca
...@@ -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.1 2003/03/18 02:21:47 ipkiss Exp $ * $Id: slider.cpp,v 1.2 2003/03/21 00:17:00 karibu 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>
...@@ -279,6 +279,8 @@ bool ControlSlider::MouseDown( int x, int y, int button ) ...@@ -279,6 +279,8 @@ bool ControlSlider::MouseDown( int x, int y, int button )
{ {
State = 0; State = 0;
Selected = true; Selected = true;
ParentWindow->Refresh( Left + CursorX[Value],
Top + CursorY[Value], CWidth, CHeight );
MoveCursor( FindNearestPoint( x, y ) ); MoveCursor( FindNearestPoint( x, y ) );
UpdateEvent->SetParam2( GetCursorPosition() ); UpdateEvent->SetParam2( GetCursorPosition() );
UpdateEvent->SendEvent(); UpdateEvent->SendEvent();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* theme.cpp: Theme class * theme.cpp: Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: theme.cpp,v 1.4 2003/03/21 00:00:19 karibu Exp $ * $Id: theme.cpp,v 1.5 2003/03/21 00:17:00 karibu 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>
...@@ -359,8 +359,6 @@ void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init ) ...@@ -359,8 +359,6 @@ void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init )
// If parent hang child and child is not still in list // If parent hang child and child is not still in list
if( !(*win_anchor)->IsInList( (*wnd_anchor) ) ) if( !(*win_anchor)->IsInList( (*wnd_anchor) ) )
{ {
if( init )
msg_Err( p_intf, "Add" );
(*win_anchor)->Add( (*wnd_anchor) ); (*win_anchor)->Add( (*wnd_anchor) );
} }
......
Markdown is supported
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