[chronojump] Force sensor capture top/bottom margins better
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Force sensor capture top/bottom margins better
- Date: Wed, 12 Feb 2020 18:09:05 +0000 (UTC)
commit e05b2b95422476656c8bae588c8b294e6faadfb8
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Feb 12 19:06:36 2020 +0100
Force sensor capture top/bottom margins better
src/forceSensor.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 2a7c366e..d8fbdb1d 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -921,14 +921,14 @@ public class ForceSensorCapturePoints
outsideGraph = true;
}
- if(p.Y < 0)
+ if(p.Y < marginTop)
{
//too drastic change that makes DrawingArea empty at capture
//RealHeightG *= 2;
RealHeightG += 20;
outsideGraph = true;
}
- else if(p.Y > heightG)
+ else if(p.Y > heightG - marginBottom)
{
//too drastic change that makes DrawingArea empty at capture
//RealHeightGNeg *= 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]