Temp fix for #1200: SystemInformation.DoubleClickTime caused segfault in libx11 on some debian systems
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Windows.Forms;
|
|
||||||
using OpenRA;
|
using OpenRA;
|
||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
|
|
||||||
@@ -44,7 +43,7 @@ class TapHistory
|
|||||||
|
|
||||||
static bool CloseEnough(Pair<DateTime, int2> a, Pair<DateTime, int2> b)
|
static bool CloseEnough(Pair<DateTime, int2> a, Pair<DateTime, int2> b)
|
||||||
{
|
{
|
||||||
return a.First - b.First < TimeSpan.FromMilliseconds( SystemInformation.DoubleClickTime )
|
return a.First - b.First < TimeSpan.FromMilliseconds( 250 )
|
||||||
&& (a.Second - b.Second).Length < 4;
|
&& (a.Second - b.Second).Length < 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="Tao.OpenGl, Version=2.1.0.12, Culture=neutral, PublicKeyToken=1ca010269a4501ef">
|
<Reference Include="Tao.OpenGl, Version=2.1.0.12, Culture=neutral, PublicKeyToken=1ca010269a4501ef">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\thirdparty\Tao\Tao.OpenGl.dll</HintPath>
|
<HintPath>..\thirdparty\Tao\Tao.OpenGl.dll</HintPath>
|
||||||
|
|||||||
Reference in New Issue
Block a user