Fix compiler warning.
This commit is contained in:
parent
21030fdfb2
commit
666705c1f8
|
@ -59,7 +59,9 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel
|
||||||
m_state( IDLE ),
|
m_state( IDLE ),
|
||||||
m_parentPanel( aParentPanel ),
|
m_parentPanel( aParentPanel ),
|
||||||
m_scrollScale( 1.0, 1.0 ),
|
m_scrollScale( 1.0, 1.0 ),
|
||||||
|
#ifdef __WXGTK3__
|
||||||
m_lastTimestamp( 0 ),
|
m_lastTimestamp( 0 ),
|
||||||
|
#endif
|
||||||
m_cursorPos( 0, 0 ),
|
m_cursorPos( 0, 0 ),
|
||||||
m_updateCursor( true )
|
m_updateCursor( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -161,8 +161,10 @@ private:
|
||||||
/// Current scrollbar position
|
/// Current scrollbar position
|
||||||
VECTOR2I m_scrollPos;
|
VECTOR2I m_scrollPos;
|
||||||
|
|
||||||
/// Last event timestamp to remove duplicates
|
#ifdef __WXGTK3__
|
||||||
|
/// Last event timestamp used to de-bounce mouse wheel
|
||||||
long int m_lastTimestamp;
|
long int m_lastTimestamp;
|
||||||
|
#endif
|
||||||
|
|
||||||
/// Current cursor position (world coordinates)
|
/// Current cursor position (world coordinates)
|
||||||
VECTOR2D m_cursorPos;
|
VECTOR2D m_cursorPos;
|
||||||
|
|
Loading…
Reference in New Issue