[longomatch] Add a bit more tolerance for lines
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add a bit more tolerance for lines
- Date: Fri, 17 Apr 2015 16:24:36 +0000 (UTC)
commit d88f2160a8bd462a116218827bd15ec06508f011
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Apr 14 02:59:38 2015 +0200
Add a bit more tolerance for lines
LongoMatch.Core/Store/Drawables/Line.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Drawables/Line.cs b/LongoMatch.Core/Store/Drawables/Line.cs
index 39a01f4..47ed31b 100644
--- a/LongoMatch.Core/Store/Drawables/Line.cs
+++ b/LongoMatch.Core/Store/Drawables/Line.cs
@@ -96,6 +96,7 @@ namespace LongoMatch.Core.Store.Drawables
slope = (Start.Y - Stop.Y) / (Start.X - Stop.X);
yi = Start.Y - (slope * Start.X);
d = Math.Abs ((slope * p.X) + yi - p.Y);
+ d /= 2;
}
if (d < pr) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]