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
f40a9256
Commit
f40a9256
authored
Jan 10, 2012
by
marco.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: Grid now is displayed correctly
parent
6b097a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drawpanel.cpp
common/drawpanel.cpp
+5
-0
No files found.
common/drawpanel.cpp
View file @
f40a9256
...
...
@@ -602,7 +602,12 @@ void EDA_DRAW_PANEL::DrawGrid( wxDC* aDC )
// Use a pixel based draw to display grid. There are a lot of calls, so the cost is
// high and grid is slowly drawn on some platforms. Please note that this should
// always be enabled until the bitmap based solution below is fixed.
#ifndef __WXMAC__
GRSetColorPen
(
aDC
,
GetParent
()
->
GetGridColor
()
);
#else
// On mac (Cocoa), a point isn't a pixel and being of size 1 don't survive to antialiasing
GRSetColorPen
(
aDC
,
GetParent
()
->
GetGridColor
(),
aDC
->
DeviceToLogicalXRel
(
2
)
);
#endif
int
xpos
;
double
right
=
(
double
)
m_ClipBox
.
GetRight
();
...
...
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