From 9fd9e68aa68ef04abaf2c4bc05e0901e8a50012e Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sat, 17 May 2008 19:08:23 +0000 Subject: [PATCH] better debug statements --- share/drawpanel.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/share/drawpanel.cpp b/share/drawpanel.cpp index ac3b62b3b8..23ce448818 100644 --- a/share/drawpanel.cpp +++ b/share/drawpanel.cpp @@ -289,6 +289,9 @@ bool WinEDA_DrawPanel::IsPointOnDisplay( wxPoint ref_pos ) void WinEDA_DrawPanel::PostDirtyRect( EDA_Rect aRect ) { + D(printf("1) PostDirtyRect( x=%d, y=%d, width=%d, height=%d)\n", + aRect.m_Pos.x, aRect.m_Pos.y, aRect.m_Size.x, aRect.m_Size.y );) + // Convert the rect coordinates and size to pixels (make a draw clip box): ConvertPcbUnitsToPixelsUnits( &aRect ); @@ -299,6 +302,9 @@ void WinEDA_DrawPanel::PostDirtyRect( EDA_Rect aRect ) aRect.m_Size.x += 2; // += 1 is not enough! aRect.m_Size.y += 2; + D(printf("2) PostDirtyRect( x=%d, y=%d, width=%d, height=%d)\n", + aRect.m_Pos.x, aRect.m_Pos.y, aRect.m_Size.x, aRect.m_Size.y );) + // pass wxRect() via EDA_Rect::operator wxRect() overload RefreshRect( aRect, TRUE ); } @@ -588,7 +594,7 @@ void WinEDA_DrawPanel::OnPaint( wxPaintEvent& event ) PaintClipBox = upd.GetBox(); #if 0 && defined (DEBUG) - printf( "PaintClipBox=(%d, %d, %d, %d) org=(%d, %d) m_ClipBox=(%d, %d, %d, %d)\n", + printf( "1) PaintClipBox=(%d, %d, %d, %d) org=(%d, %d) m_ClipBox=(%d, %d, %d, %d)\n", PaintClipBox.x, PaintClipBox.y, PaintClipBox.width, @@ -616,7 +622,7 @@ void WinEDA_DrawPanel::OnPaint( wxPaintEvent& event ) #if 0 && defined(DEBUG) - printf( "PaintClipBox=(%d, %d, %d, %d) org=(%d, %d) m_ClipBox=(%d, %d, %d, %d)\n", + printf( "2) PaintClipBox=(%d, %d, %d, %d) org=(%d, %d) m_ClipBox=(%d, %d, %d, %d)\n", PaintClipBox.x, PaintClipBox.y, PaintClipBox.width,