]> git.sesse.net Git - vlc/commitdiff
* Removed debug calls
authorEmmanuel Puig <karibu@videolan.org>
Wed, 16 Apr 2003 21:39:00 +0000 (21:39 +0000)
committerEmmanuel Puig <karibu@videolan.org>
Wed, 16 Apr 2003 21:39:00 +0000 (21:39 +0000)
modules/gui/skins/controls/button.cpp
modules/gui/skins/src/window.cpp

index f4868c64dfd98791e434ffa30dde1429b1cf7fd1..045dece63d3daa5d0cc364814be5bf9b2e795348 100644 (file)
@@ -2,7 +2,7 @@
  * button.cpp: Button control
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: button.cpp,v 1.7 2003/04/16 19:22:53 karibu Exp $
+ * $Id: button.cpp,v 1.8 2003/04/16 21:39:00 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -137,7 +137,6 @@ bool ControlButton::MouseUp( int x, int y, int button )
     // If hit in the button
     if( Img[1]->Hit( x - Left, y - Top ) )
     {
-        fprintf( stderr, "    Button up ! (%i;%i)\n", button, (int)Selected );
         if( !Enabled )
             return true;
 
@@ -161,18 +160,14 @@ bool ControlButton::MouseDown( int x, int y, int button )
 {
     if( Img[0]->Hit( x - Left, y - Top ) )
     {
-        fprintf( stderr, "    Button down ! (%i)\n", button );
         if( !Enabled )
             return true;
 
-        fprintf( stderr, "    Button down ! (%i)\n", button );
         if( button == 1 )
         {
             State = 0;
             Selected = true;
-            fprintf( stderr, "    Button down ! (%i)\n", (int)Selected );
             ParentWindow->Refresh( Left, Top, Width, Height );
-            fprintf( stderr, "    Button down ! (%i)\n", (int)Selected );
             return true;
         }
     }
index a529d1d029f68eeef33da0d9e50ded928ad8aac2..588ac4f7373702251a7f627855485bd2f52f9a4f 100644 (file)
@@ -2,7 +2,7 @@
  * window.cpp: Window class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: window.cpp,v 1.14 2003/04/16 19:22:53 karibu Exp $
+ * $Id: window.cpp,v 1.15 2003/04/16 21:39:00 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -271,7 +271,6 @@ void Window::RefreshImage( int x, int y, int w, int h )
 {
     unsigned int i;
 
-fprintf(stderr, "refr %d %d %d %d\n", x,y,w,h);
     // Create Bitmap Buffer
     Graphics *Buffer = (Graphics *)new OSGraphics( w, h, this );
 
@@ -297,8 +296,6 @@ void Window::Refresh( int x, int y, int w, int h )
     if( Hidden )
         return;
 
-    fprintf( stderr, "Refresh: %i %i %i %i\n", x, y, w, h );
-
     // And copy buffer to window
     RefreshFromImage( x, y, w, h );
 
@@ -388,14 +385,8 @@ void Window::MouseUp( int x, int y, int button )
     // Checking event in controls
     for( i = ControlList.size() - 1; i >= 0 ; i-- )
     {
-        fprintf( stderr, "  -> Control\n" );
         if( ControlList[i]->MouseUp( x, y, button ) )
         {
-            int x, y;
-            //ControlList[i]->GetSize( x, y );
-            fprintf( stderr, "    x: %i\n    y: %i\n",
-                ControlList[i]->Left, ControlList[i]->Top );
-                
             return;
         }
     }