Commit cfb67ec4 authored by dickelbeck's avatar dickelbeck
Browse files

removed debug printfs

parent 11e5d288
Loading
Loading
Loading
Loading
+0 −21
Original line number Original line Diff line number Diff line
@@ -223,9 +223,6 @@ BOARD_ITEM* WinEDA_BasePcbFrame::PcbGeneralLocateAndDisplay( int aHotKeyCode )
void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
/*****************************************************************/
/*****************************************************************/
{
{
    D(printf("GeneralControle x=%d, y=%d\n", 
         m_CurrentScreen->m_Curseur.x, m_CurrentScreen->m_Curseur.y );)
    
    wxSize  delta;
    wxSize  delta;
    int     zoom = GetScreen()->GetZoom();
    int     zoom = GetScreen()->GetZoom();
    wxPoint curpos, oldpos;
    wxPoint curpos, oldpos;
@@ -259,13 +256,8 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
        SetTitle( GetScreen()->m_FileName );
        SetTitle( GetScreen()->m_FileName );
    }
    }


    D(printf("GeneralControleA Mouse.x=%d, Mouse.y=%d\n", 
         Mouse.x, Mouse.y );)
    
    curpos = DrawPanel->CursorRealPosition( Mouse );
    curpos = DrawPanel->CursorRealPosition( Mouse );


    D(printf("GeneralControleB curpos.x=%d, curpos.y=%d\n", curpos.x, curpos.y );)
    
    oldpos = GetScreen()->m_Curseur;
    oldpos = GetScreen()->m_Curseur;


    delta.x = (int) round( (double) GetScreen()->GetGrid().x / zoom );
    delta.x = (int) round( (double) GetScreen()->GetGrid().x / zoom );
@@ -276,12 +268,6 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
    if( delta.y <= 0 )
    if( delta.y <= 0 )
        delta.y = 1;
        delta.y = 1;


#if 0 && defined(DEBUG)
    printf( "delta.x=%d delta.y=%d grid.x=%d, grid.y=%d, zoom=%d\n", 
           delta.x, delta.y, GetScreen()->GetGrid().x, GetScreen()->GetGrid().y, zoom );
#endif


    switch( g_KeyPressed )
    switch( g_KeyPressed )
    {
    {
    case EDA_PANNING_UP_KEY:
    case EDA_PANNING_UP_KEY:
@@ -348,16 +334,9 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
        break;
        break;
    }
    }


    D(printf("GeneralControle2 x=%d, y=%d\n", 
         m_CurrentScreen->m_Curseur.x, m_CurrentScreen->m_Curseur.y );)
    
    /* Put cursor in new position, according to the zoom keys (if any) */
    /* Put cursor in new position, according to the zoom keys (if any) */
    GetScreen()->m_Curseur = curpos;
    GetScreen()->m_Curseur = curpos;


    D(printf("GeneralControle3 x=%d, y=%d\n", 
         m_CurrentScreen->m_Curseur.x, m_CurrentScreen->m_Curseur.y );)

    
    /* Put cursor on grid or a pad centre if requested
    /* Put cursor on grid or a pad centre if requested
     * But if the tool DELETE is active the cursor is left off grid
     * But if the tool DELETE is active the cursor is left off grid
     * this is better to reach items to delete off grid
     * this is better to reach items to delete off grid