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
95f3d88b
Commit
95f3d88b
authored
Dec 13, 2010
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add compile time message capability to INSTALL_*DC()
parent
756bfc04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
kicad_device_context.h
include/kicad_device_context.h
+7
-1
No files found.
include/kicad_device_context.h
View file @
95f3d88b
...
...
@@ -27,6 +27,7 @@
// Macro used to declare a device context in kicad:
#if USE_WX_GRAPHICS_CONTEXT && USE_WX_ZOOM
//#pragma message( "INSTALL_DC is wxClientDC with wxGCDC" )
#define INSTALL_DC(name,parent) \
wxClientDC
_cDC
(
parent
);
\
wxGCDC
name
(
_cDC
);
\
...
...
@@ -34,11 +35,13 @@
name
.
GetGraphicsContext
()
->
Translate
(
0
.
5
,
0
.
5
);
#else
#ifdef KICAD_USE_BUFFERED_DC
//#pragma message( "INSTALL_DC is wxClientDC with wxBufferedDC" )
#define INSTALL_DC(name,parent) \
wxClientDC
_cDC
(
parent
);
\
wxBufferedDC
name
(
&
_cDC
,
_cDC
.
GetSize
()
);
\
parent
->
DoPrepareDC
(
name
);
#else
//#pragma message( "INSTALL_DC is wxClientDC" )
#define INSTALL_DC(name,parent) \
wxClientDC
name
(
parent
);
\
parent
->
DoPrepareDC
(
name
);
...
...
@@ -46,16 +49,19 @@
#endif
#if USE_WX_GRAPHICS_CONTEXT
//#pragma message( "INSTALL_PAINTDC is wxPaintDC with wxGCDC" )
#define INSTALL_PAINTDC(name,parent) \
wxPaintDC
_pDC
(
parent
);
\
wxGCDC
name
(
_pDC
);
\
parent
->
DoPrepareDC
(
name
);
\
name
.
GetGraphicsContext
()
->
Translate
(
0
.
5
,
0
.
5
);
name
.
GetGraphicsContext
()
->
Translate
(
0
.
5
,
0
.
5
);
#elif !defined( USE_WX_ZOOM ) && defined( KICAD_USE_BUFFERED_PAINTDC )
//#pragma message( "INSTALL_PAINTDC is wxAutoBufferedPaintDC" )
#define INSTALL_PAINTDC(name,parent) \
wxAutoBufferedPaintDC
name
(
parent
);
\
parent
->
DoPrepareDC
(
name
);
#else
//#pragma message( "INSTALL_PAINTDC is wxPaintDC" )
#define INSTALL_PAINTDC(name,parent) \
wxPaintDC
name
(
parent
);
\
parent
->
DoPrepareDC
(
name
);
...
...
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