Commit d71063c3 authored by Emmanuel Puig's avatar Emmanuel Puig

* Removed debug calls

parent f2c84d95
......@@ -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 Teulire <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;
}
}
......
......@@ -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 Teulire <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;
}
}
......
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