Fix compiler warning.

This commit is contained in:
Jeff Young 2019-06-17 14:00:56 +01:00
parent 21030fdfb2
commit 666705c1f8
2 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,9 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel
m_state( IDLE ),
m_parentPanel( aParentPanel ),
m_scrollScale( 1.0, 1.0 ),
#ifdef __WXGTK3__
m_lastTimestamp( 0 ),
#endif
m_cursorPos( 0, 0 ),
m_updateCursor( true )
{

View File

@ -161,8 +161,10 @@ private:
/// Current scrollbar position
VECTOR2I m_scrollPos;
/// Last event timestamp to remove duplicates
#ifdef __WXGTK3__
/// Last event timestamp used to de-bounce mouse wheel
long int m_lastTimestamp;
#endif
/// Current cursor position (world coordinates)
VECTOR2D m_cursorPos;