From ea3ad0e37835bcb12348d8cf7afa9df754302cb5 Mon Sep 17 00:00:00 2001 From: Curtis S Date: Sun, 9 Oct 2011 23:42:14 -0600 Subject: [PATCH] Temp fix for #1200: SystemInformation.DoubleClickTime caused segfault in libx11 on some debian systems --- OpenRA.Renderer.SdlCommon/MultiTapDetection.cs | 3 +-- OpenRA.Renderer.SdlCommon/OpenRA.Renderer.SdlCommon.csproj | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/OpenRA.Renderer.SdlCommon/MultiTapDetection.cs b/OpenRA.Renderer.SdlCommon/MultiTapDetection.cs index 9e1c013393..a9408533bc 100644 --- a/OpenRA.Renderer.SdlCommon/MultiTapDetection.cs +++ b/OpenRA.Renderer.SdlCommon/MultiTapDetection.cs @@ -9,7 +9,6 @@ #endregion using System; -using System.Windows.Forms; using OpenRA; using OpenRA.FileFormats; @@ -44,7 +43,7 @@ class TapHistory static bool CloseEnough(Pair a, Pair b) { - return a.First - b.First < TimeSpan.FromMilliseconds( SystemInformation.DoubleClickTime ) + return a.First - b.First < TimeSpan.FromMilliseconds( 250 ) && (a.Second - b.Second).Length < 4; } diff --git a/OpenRA.Renderer.SdlCommon/OpenRA.Renderer.SdlCommon.csproj b/OpenRA.Renderer.SdlCommon/OpenRA.Renderer.SdlCommon.csproj index eccc32354f..1b8593a407 100644 --- a/OpenRA.Renderer.SdlCommon/OpenRA.Renderer.SdlCommon.csproj +++ b/OpenRA.Renderer.SdlCommon/OpenRA.Renderer.SdlCommon.csproj @@ -32,11 +32,8 @@ - - - False ..\thirdparty\Tao\Tao.OpenGl.dll