Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
9fd9e68a
Commit
9fd9e68a
authored
May 17, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better debug statements
parent
067ae0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drawpanel.cpp
share/drawpanel.cpp
+8
-2
No files found.
share/drawpanel.cpp
View file @
9fd9e68a
...
@@ -289,6 +289,9 @@ bool WinEDA_DrawPanel::IsPointOnDisplay( wxPoint ref_pos )
...
@@ -289,6 +289,9 @@ bool WinEDA_DrawPanel::IsPointOnDisplay( wxPoint ref_pos )
void
WinEDA_DrawPanel
::
PostDirtyRect
(
EDA_Rect
aRect
)
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):
// Convert the rect coordinates and size to pixels (make a draw clip box):
ConvertPcbUnitsToPixelsUnits
(
&
aRect
);
ConvertPcbUnitsToPixelsUnits
(
&
aRect
);
...
@@ -299,6 +302,9 @@ void WinEDA_DrawPanel::PostDirtyRect( EDA_Rect aRect )
...
@@ -299,6 +302,9 @@ void WinEDA_DrawPanel::PostDirtyRect( EDA_Rect aRect )
aRect
.
m_Size
.
x
+=
2
;
// += 1 is not enough!
aRect
.
m_Size
.
x
+=
2
;
// += 1 is not enough!
aRect
.
m_Size
.
y
+=
2
;
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
// pass wxRect() via EDA_Rect::operator wxRect() overload
RefreshRect
(
aRect
,
TRUE
);
RefreshRect
(
aRect
,
TRUE
);
}
}
...
@@ -588,7 +594,7 @@ void WinEDA_DrawPanel::OnPaint( wxPaintEvent& event )
...
@@ -588,7 +594,7 @@ void WinEDA_DrawPanel::OnPaint( wxPaintEvent& event )
PaintClipBox
=
upd
.
GetBox
();
PaintClipBox
=
upd
.
GetBox
();
#if 0 && defined (DEBUG)
#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.x,
PaintClipBox.y,
PaintClipBox.y,
PaintClipBox.width,
PaintClipBox.width,
...
@@ -616,7 +622,7 @@ void WinEDA_DrawPanel::OnPaint( wxPaintEvent& event )
...
@@ -616,7 +622,7 @@ void WinEDA_DrawPanel::OnPaint( wxPaintEvent& event )
#if 0 && defined(DEBUG)
#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.x,
PaintClipBox.y,
PaintClipBox.y,
PaintClipBox.width,
PaintClipBox.width,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment