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
3c6c7134
Commit
3c6c7134
authored
Oct 06, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added forgotten lines from patch "EEschema selection.patch"
parent
035979d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gr_basic.cpp
common/gr_basic.cpp
+3
-3
gr_basic.h
include/gr_basic.h
+6
-0
No files found.
common/gr_basic.cpp
View file @
3c6c7134
...
...
@@ -107,7 +107,7 @@ static wxDC* s_DC_lastDC = NULL;
/* Local functions: */
static
void
GRSRect
(
EDA_Rect
*
aClipBox
,
wxDC
*
aDC
,
int
x1
,
int
y1
,
int
x2
,
int
y2
,
int
aWidth
,
int
aColor
,
int
aStyle
=
wx
SOLID
);
wxPenStyle
aStyle
=
wxPENSTYLE_
SOLID
);
/*
* Macro clipping the trace of a line:
...
...
@@ -1672,7 +1672,7 @@ void GRRect( EDA_Rect* aClipBox, wxDC* aDC, int x1, int y1, int x2, int y2, int
GRSRect
(
aClipBox
,
aDC
,
x1
,
y1
,
x2
,
y2
,
0
,
aColor
);
}
void
GRRectPs
(
EDA_Rect
*
aClipBox
,
wxDC
*
aDC
,
const
EDA_Rect
&
aRect
,
int
aColor
,
int
aStyle
)
void
GRRectPs
(
EDA_Rect
*
aClipBox
,
wxDC
*
aDC
,
const
EDA_Rect
&
aRect
,
int
aColor
,
wxPenStyle
aStyle
)
{
int
x1
=
GRMapX
(
aRect
.
GetX
()
);
int
y1
=
GRMapY
(
aRect
.
GetY
()
);
...
...
@@ -1746,7 +1746,7 @@ void GRFilledRect( EDA_Rect* ClipBox, wxDC* DC, int x1, int y1, int x2, int y2,
*/
void
GRSRect
(
EDA_Rect
*
aClipBox
,
wxDC
*
aDC
,
int
x1
,
int
y1
,
int
x2
,
int
y2
,
int
aWidth
,
int
aColor
,
int
aStyle
)
int
aWidth
,
int
aColor
,
wxPenStyle
aStyle
)
{
if
(
x1
>
x2
)
EXCHG
(
x1
,
x2
);
...
...
include/gr_basic.h
View file @
3c6c7134
...
...
@@ -24,6 +24,12 @@ class EDA_Rect;
#define GR_M_MIDDLE_DOWN 0x40000000
#define GR_M_DCLICK 0x80000000
//wxWidgets 2.8 compatibility
#if !wxCHECK_VERSION(2,9,0)
#define wxPENSTYLE_SOLID wxSOLID
typedef
int
wxPenStyle
;
#endif
extern
int
g_XorMode
;
extern
int
g_DrawBgColor
;
...
...
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