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
7e8c2e74
Commit
7e8c2e74
authored
Dec 06, 2007
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solved zoom key command problems
parent
f2b43e75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
change_log.txt
change_log.txt
+7
-0
drawpanel.cpp
share/drawpanel.cpp
+10
-0
No files found.
change_log.txt
View file @
7e8c2e74
...
...
@@ -5,6 +5,13 @@ Please add newer entries at the top, list the date and your name with
email address.
2007-Dec-06 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
Solved zoom key command problems (under linux and windows)
(seen http://sourceforge.net/tracker/index.php?func=detail&aid=1844960&group_id=145591&atid=762476)
2007-Dec-4 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
+pcbnew
...
...
share/drawpanel.cpp
View file @
7e8c2e74
...
...
@@ -1066,6 +1066,16 @@ void WinEDA_DrawPanel::OnKeyEvent( wxKeyEvent& event )
}
}
/* some key commands use the mouse position: refresh it */
wxPoint
mouse_pos
=
wxGetMousePosition
();
// Get the mouse position on screen
wxPoint
win_pos
=
GetScreenPosition
();
// get the draw area (panel)position on screen
mouse_pos
-=
win_pos
;
// mouse_pos = is the mouse position relative to the panel
/* Compute absolute m_MousePosition in pixel units (i.e. considering the current scrool) : */
Screen
->
m_MousePositionInPixels
=
CalcAbsolutePosition
(
mouse_pos
);
/* Compute absolute m_MousePosition in user units: */
Screen
->
m_MousePosition
=
CursorRealPosition
(
Screen
->
m_MousePositionInPixels
);
m_Parent
->
GeneralControle
(
&
DC
,
Screen
->
m_MousePositionInPixels
);
#if 0
...
...
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