]> git.sesse.net Git - vlc/commitdiff
* slider.cpp: fixed mouse down refresh bug
authorEmmanuel Puig <karibu@videolan.org>
Fri, 21 Mar 2003 00:17:00 +0000 (00:17 +0000)
committerEmmanuel Puig <karibu@videolan.org>
Fri, 21 Mar 2003 00:17:00 +0000 (00:17 +0000)
* theme.cpp: removed debug text

modules/gui/skins/controls/slider.cpp
modules/gui/skins/src/theme.cpp

index c3f5b0518b913c05a250d7183eb517fa4bd3e247..3745ff563f8ebeebb41edb1af345340e4c24a6df 100644 (file)
@@ -2,7 +2,7 @@
  * slider.cpp: Slider control
  *****************************************************************************
  * 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 Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -279,6 +279,8 @@ bool ControlSlider::MouseDown( int x, int y, int button )
     {
         State = 0;
         Selected = true;
+        ParentWindow->Refresh( Left + CursorX[Value],
+            Top + CursorY[Value], CWidth, CHeight );
         MoveCursor( FindNearestPoint( x, y ) );
         UpdateEvent->SetParam2( GetCursorPosition() );
         UpdateEvent->SendEvent();
index 8590ef5678074582c4ed4cca288a9dec937c6ce0..59a101572823a8b138c20a21ac0fdc245419551a 100644 (file)
@@ -2,7 +2,7 @@
  * theme.cpp: Theme class
  *****************************************************************************
  * 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 Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -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( !(*win_anchor)->IsInList( (*wnd_anchor) ) )
                         {
-                            if( init )
-                                msg_Err( p_intf, "Add" );
                             (*win_anchor)->Add( (*wnd_anchor) );
                         }