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
bf418eb1
Commit
bf418eb1
authored
Mar 19, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cursor coordinates are updated in GAL canvases.
parent
2d8dc046
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
drawframe.cpp
common/drawframe.cpp
+12
-2
tool_dispatcher.cpp
common/tool/tool_dispatcher.cpp
+1
-0
No files found.
common/drawframe.cpp
View file @
bf418eb1
...
...
@@ -47,6 +47,7 @@
#include <wx/fontdlg.h>
#include <view/view.h>
#include <view/view_controls.h>
#include <gal/graphics_abstraction_layer.h>
/**
...
...
@@ -1019,9 +1020,18 @@ void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
wxPoint
EDA_DRAW_FRAME
::
GetCrossHairPosition
(
bool
aInvertY
)
const
{
// subject to change, borrow from old BASE_SCREEN for now.
if
(
IsGalCanvasActive
()
)
{
VECTOR2I
cursor
=
GetGalCanvas
()
->
GetViewControls
()
->
GetCursorPosition
();
cursor
=
GetGalCanvas
()
->
GetGAL
()
->
GetGridPoint
(
cursor
);
BASE_SCREEN
*
screen
=
GetScreen
();
// virtual call
return
screen
->
getCrossHairPosition
(
aInvertY
);
return
wxPoint
(
cursor
.
x
,
cursor
.
y
);
}
else
{
BASE_SCREEN
*
screen
=
GetScreen
();
// virtual call
return
screen
->
getCrossHairPosition
(
aInvertY
);
}
}
...
...
common/tool/tool_dispatcher.cpp
View file @
bf418eb1
...
...
@@ -229,6 +229,7 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
{
motion
=
true
;
m_lastMousePos
=
pos
;
m_editFrame
->
UpdateStatusBar
();
}
for
(
unsigned
int
i
=
0
;
i
<
m_buttons
.
size
();
i
++
)
...
...
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