Use in wxPG classes wxMilliClock_t variables to store values returned by wxGetLocalTimeMillis() function.
wxMilliClock_t is always mapped to the proper base type and hence can be used even if wxLongLong type is not defined (when wxUSE_LONGLONG is disabled).
This commit is contained in:
@@ -535,7 +535,7 @@ protected:
|
||||
|
||||
void OnMouseEvent( wxMouseEvent& event )
|
||||
{
|
||||
wxLongLong t = ::wxGetLocalTimeMillis();
|
||||
wxMilliClock_t t = ::wxGetLocalTimeMillis();
|
||||
int evtType = event.GetEventType();
|
||||
|
||||
if ( m_property->HasFlag(wxPG_PROP_USE_DCC) &&
|
||||
@@ -560,7 +560,7 @@ protected:
|
||||
{
|
||||
if ( m_downReceived || m_timeLastMouseUp == 1 )
|
||||
{
|
||||
wxLongLong timeFromLastUp = (t-m_timeLastMouseUp);
|
||||
wxMilliClock_t timeFromLastUp = (t-m_timeLastMouseUp);
|
||||
|
||||
if ( timeFromLastUp < DOUBLE_CLICK_CONVERSION_TRESHOLD )
|
||||
{
|
||||
@@ -586,7 +586,7 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
wxLongLong m_timeLastMouseUp;
|
||||
wxMilliClock_t m_timeLastMouseUp;
|
||||
wxOwnerDrawnComboBox* m_combo;
|
||||
wxPGProperty* m_property; // Selected property
|
||||
bool m_downReceived;
|
||||
|
Reference in New Issue
Block a user