Commit 628be5d1 authored by dickelbeck's avatar dickelbeck
Browse files

chasing a bug

parent 9200a9da
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,15 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.



2007-Dec-4 UPDATE   Dick Hollenbeck <dick@softplc.com>
================================================================================
+pcbnew
    added the D() macro to fctsys.h to ease conditional debug printf()s.
    worked on http://sourceforge.net/tracker/index.php?func=detail&aid=1844960&group_id=145591&atid=762476
    but could not resolve it in 1/2 day.
    

2007-Dec-4 UPDATE   Dick Hollenbeck <dick@softplc.com>
2007-Dec-4 UPDATE   Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
+pcbnew
+pcbnew
+3 −0
Original line number Original line Diff line number Diff line
@@ -112,6 +112,9 @@ wxPoint BASE_SCREEN::CursorRealPosition( const wxPoint& ScreenPos )
{
{
    wxPoint curpos;
    wxPoint curpos;


    D(printf("curpos=%d,%d GetZoom=%d, mDrawOrg=%d,%d\n",
      curpos.x, curpos.y, GetZoom(), m_DrawOrg.x, m_DrawOrg.y );)
    
    curpos.x = ScreenPos.x * GetZoom();
    curpos.x = ScreenPos.x * GetZoom();
    curpos.y = ScreenPos.y * GetZoom();
    curpos.y = ScreenPos.y * GetZoom();


+7 −0
Original line number Original line Diff line number Diff line
@@ -66,6 +66,13 @@
#define STRING_DIR_SEP wxT( "/" )
#define STRING_DIR_SEP wxT( "/" )
#endif
#endif


#ifdef DEBUG
#define D(x)        x
#else
#define D(x)        // nothing
#endif


#define UNIX_STRING_DIR_SEP wxT( "/" )
#define UNIX_STRING_DIR_SEP wxT( "/" )
#define WIN_STRING_DIR_SEP  wxT( "\\" )
#define WIN_STRING_DIR_SEP  wxT( "\\" )


+1 −1
Original line number Original line Diff line number Diff line


MAKEGTK = $(MAKE) -f makefile.gtk
MAKEGTK = $(MAKE) -f makefile.gtk
KICAD_SUBDIRS = common 3d-viewer pcbnew eeschema eeschema/plugins cvpcb kicad gerbview
KICAD_SUBDIRS = common 3d-viewer pcbnew #eeschema eeschema/plugins cvpcb kicad gerbview
KICAD_SUBDIRS_BIN = eeschema eeschema/plugins pcbnew cvpcb kicad gerbview
KICAD_SUBDIRS_BIN = eeschema eeschema/plugins pcbnew cvpcb kicad gerbview
KICAD_SUBDIRS_RES = internat modules template library
KICAD_SUBDIRS_RES = internat modules template library
KICAD_SUBDIRS_HELP = help
KICAD_SUBDIRS_HELP = help
+3 −0
Original line number Original line Diff line number Diff line
@@ -119,6 +119,9 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
        DrawPanel->MouseToCursorSchema();
        DrawPanel->MouseToCursorSchema();
        DrawPanel->CursorOn( &dc );
        DrawPanel->CursorOn( &dc );
    }
    }
    
    D(printf("CursorGoto end x=%d, y=%d\n", 
         m_CurrentScreen->m_Curseur.x, m_CurrentScreen->m_Curseur.y );)
}
}




Loading