Temp fix for #1200: SystemInformation.DoubleClickTime caused segfault in libx11 on some debian systems

This commit is contained in:
Curtis S
2011-10-09 23:42:14 -06:00
committed by Chris Forbes
parent 2c415a8fd6
commit ea3ad0e378
2 changed files with 1 additions and 5 deletions

View File

@@ -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;
} }

View File

@@ -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>