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
8ab98ae6
Commit
8ab98ae6
authored
Aug 07, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed frame limiter.
parent
bc69429a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
drawpanel_gal.cpp
common/drawpanel_gal.cpp
+9
-15
No files found.
common/drawpanel_gal.cpp
View file @
8ab98ae6
...
...
@@ -99,8 +99,6 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin
Connect
(
wxEVT_MOUSEWHEEL
,
wxEventHandler
(
EDA_DRAW_PANEL_GAL
::
onEvent
),
NULL
,
this
);
Connect
(
wxEVT_KEY_UP
,
wxEventHandler
(
EDA_DRAW_PANEL_GAL
::
onEvent
),
NULL
,
this
);
Connect
(
wxEVT_KEY_DOWN
,
wxEventHandler
(
EDA_DRAW_PANEL_GAL
::
onEvent
),
NULL
,
this
);
m_timeStamp
=
0
;
}
...
...
@@ -134,14 +132,6 @@ void EDA_DRAW_PANEL_GAL::onSize( wxSizeEvent& aEvent )
void
EDA_DRAW_PANEL_GAL
::
Refresh
(
bool
eraseBackground
,
const
wxRect
*
rect
)
{
const
unsigned
int
FPS_LIMIT
=
40
;
// Framerate limiter
wxLongLong
currentTimeStamp
=
wxGetLocalTimeMillis
();
// if( currentTimeStamp - m_timeStamp < ( 1000 / FPS_LIMIT ) )
// return;
m_timeStamp
=
currentTimeStamp
;
#ifdef __WXDEBUG__
prof_counter
time
;
...
...
@@ -209,19 +199,23 @@ void EDA_DRAW_PANEL_GAL::SwitchBackend( GalType aGalType )
m_currentGal
=
aGalType
;
}
void
EDA_DRAW_PANEL_GAL
::
onEvent
(
wxEvent
&
aEvent
)
{
if
(
!
m_eventDispatcher
)
if
(
!
m_eventDispatcher
)
{
aEvent
.
Skip
();
return
;
}
else
{
printf
(
"evType %d
\n
"
,
aEvent
.
GetEventType
());
m_eventDispatcher
->
DispatchWxEvent
(
aEvent
);
}
else
{
printf
(
"evType %d
\n
"
,
aEvent
.
GetEventType
()
);
m_eventDispatcher
->
DispatchWxEvent
(
aEvent
);
}
}
KiGfx
::
VIEW_CONTROLS
*
EDA_DRAW_PANEL_GAL
::
GetViewControls
()
const
{
return
m_viewControls
;
}
\ No newline at end of file
}
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