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
1f0f784d
Commit
1f0f784d
authored
Jan 15, 2011
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: Workaround for wx problems with USE_WX_ZOOM
parent
e79b5963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
zoom.cpp
common/zoom.cpp
+5
-2
No files found.
common/zoom.cpp
View file @
1f0f784d
...
@@ -29,7 +29,7 @@ void WinEDA_DrawFrame::Recadre_Trace( bool ToMouse )
...
@@ -29,7 +29,7 @@ void WinEDA_DrawFrame::Recadre_Trace( bool ToMouse )
PutOnGrid
(
&
(
GetBaseScreen
()
->
m_Curseur
)
);
PutOnGrid
(
&
(
GetBaseScreen
()
->
m_Curseur
)
);
AdjustScrollBars
();
AdjustScrollBars
();
#if !(defined(__WXMAC__) && defined(USE_WX_ZOOM))
/* We do not use here DrawPanel->Refresh() because
/* We do not use here DrawPanel->Refresh() because
* the redraw is delayed and the mouse events (from MouseToCursorSchema ot others)
* the redraw is delayed and the mouse events (from MouseToCursorSchema ot others)
* during this delay create problems: the mouse cursor position is false in calculations.
* during this delay create problems: the mouse cursor position is false in calculations.
...
@@ -38,7 +38,10 @@ void WinEDA_DrawFrame::Recadre_Trace( bool ToMouse )
...
@@ -38,7 +38,10 @@ void WinEDA_DrawFrame::Recadre_Trace( bool ToMouse )
*/
*/
INSTALL_DC
(
dc
,
DrawPanel
);
INSTALL_DC
(
dc
,
DrawPanel
);
DrawPanel
->
ReDraw
(
&
dc
,
DrawPanel
->
m_DisableEraseBG
?
false
:
true
);
DrawPanel
->
ReDraw
(
&
dc
,
DrawPanel
->
m_DisableEraseBG
?
false
:
true
);
#else
DrawPanel
->
Refresh
();
DrawPanel
->
Update
();
#endif
/* Move the mouse cursor to the on grid graphic cursor position */
/* Move the mouse cursor to the on grid graphic cursor position */
if
(
ToMouse
==
TRUE
)
if
(
ToMouse
==
TRUE
)
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
...
...
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