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
e557b388
Commit
e557b388
authored
Feb 16, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes MSVC compile errors.
parent
f0afa230
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
drawpanel.cpp
common/drawpanel.cpp
+2
-2
class_aperture_macro.cpp
gerbview/class_aperture_macro.cpp
+2
-1
dcode.h
gerbview/dcode.h
+1
-1
automove.cpp
pcbnew/automove.cpp
+5
-1
No files found.
common/drawpanel.cpp
View file @
e557b388
...
@@ -353,8 +353,8 @@ void EDA_DRAW_PANEL::OnScroll( wxScrollWinEvent& event )
...
@@ -353,8 +353,8 @@ void EDA_DRAW_PANEL::OnScroll( wxScrollWinEvent& event )
}
}
wxLogTrace
(
KICAD_TRACE_COORDS
,
wxLogTrace
(
KICAD_TRACE_COORDS
,
wxT
(
"Setting scroll bars ppuX=%d, ppuY=%d, unitsX=%d, unitsY=%d,
"
\
wxT
(
"Setting scroll bars ppuX=%d, ppuY=%d, unitsX=%d, unitsY=%d,
posX=%d, posY=%d"
),
"posX=%d, posY=%d"
),
ppux
,
ppuy
,
unitsX
,
unitsY
,
x
,
y
);
ppux
,
ppuy
,
unitsX
,
unitsY
,
x
,
y
);
Scroll
(
x
/
ppux
,
y
/
ppuy
);
Scroll
(
x
/
ppux
,
y
/
ppuy
);
event
.
Skip
();
event
.
Skip
();
...
...
gerbview/class_aperture_macro.cpp
View file @
e557b388
...
@@ -458,7 +458,8 @@ void AM_PRIMITIVE::ConvertShapeToPolygon( GERBER_DRAW_ITEM* aParent,
...
@@ -458,7 +458,8 @@ void AM_PRIMITIVE::ConvertShapeToPolygon( GERBER_DRAW_ITEM* aParent,
aBuffer
.
push_back
(
currpt
);
aBuffer
.
push_back
(
currpt
);
// Rotate rectangle and move it to the actual start point
// Rotate rectangle and move it to the actual start point
int
angle
=
wxRound
(
atan2
(
delta
.
y
,
delta
.
x
)
*
1800.0
/
M_PI
);
int
angle
=
wxRound
(
atan2
(
(
double
)
delta
.
y
,
(
double
)
delta
.
x
)
*
1800.0
/
M_PI
);
for
(
unsigned
ii
=
0
;
ii
<
4
;
ii
++
)
for
(
unsigned
ii
=
0
;
ii
<
4
;
ii
++
)
{
{
RotatePoint
(
&
aBuffer
[
ii
],
-
angle
);
RotatePoint
(
&
aBuffer
[
ii
],
-
angle
);
...
...
gerbview/dcode.h
View file @
e557b388
...
@@ -66,7 +66,7 @@ enum APERTURE_DEF_HOLETYPE {
...
@@ -66,7 +66,7 @@ enum APERTURE_DEF_HOLETYPE {
#define LAST_DCODE 999
#define LAST_DCODE 999
#define TOOLS_MAX_COUNT (LAST_DCODE + 1)
#define TOOLS_MAX_COUNT (LAST_DCODE + 1)
class
APERTURE_MACRO
;
struct
APERTURE_MACRO
;
/**
/**
...
...
pcbnew/automove.cpp
View file @
e557b388
...
@@ -211,7 +211,11 @@ void WinEDA_PcbFrame::AutoMoveModulesOnPcb( bool PlaceModulesHorsPcb )
...
@@ -211,7 +211,11 @@ void WinEDA_PcbFrame::AutoMoveModulesOnPcb( bool PlaceModulesHorsPcb )
if
(
PlaceModulesHorsPcb
&&
edgesExists
)
if
(
PlaceModulesHorsPcb
&&
edgesExists
)
{
{
if
(
GetScreen
()
->
GetCrossHairPosition
().
y
<
(
GetBoard
()
->
m_BoundaryBox
.
GetBottom
()
+
2000
)
)
if
(
GetScreen
()
->
GetCrossHairPosition
().
y
<
(
GetBoard
()
->
m_BoundaryBox
.
GetBottom
()
+
2000
)
)
GetScreen
()
->
GetCrossHairPosition
().
y
=
GetBoard
()
->
m_BoundaryBox
.
GetBottom
()
+
2000
;
{
wxPoint
pos
=
GetScreen
()
->
GetCrossHairPosition
();
pos
.
y
=
GetBoard
()
->
m_BoundaryBox
.
GetBottom
()
+
2000
;
GetScreen
()
->
SetCrossHairPosition
(
pos
);
}
}
}
/* calculate the area needed by footprints */
/* calculate the area needed by footprints */
...
...
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