[chronojump] ForceSensor AI, better condition for zoom at: OutsideGraphChangeValues
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ForceSensor AI, better condition for zoom at: OutsideGraphChangeValues
- Date: Mon, 16 Mar 2020 17:31:15 +0000 (UTC)
commit 658ba09ab9d03812eb1a882cf945c9b7b8c48631
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Mar 16 18:14:53 2020 +0100
ForceSensor AI, better condition for zoom at: OutsideGraphChangeValues
src/forceSensor.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 3701f624..158973fd 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -1032,7 +1032,9 @@ public class ForceSensorCapturePoints
bool change = false;
if(lastTime + GetTimeInPx(marginLeft) + GetTimeInPx(marginRight) > RealWidthG ||
GetForceInPx(minForce) > heightG ||
- GetForceInPx(maxForce) < 0)
+ GetForceInPx(maxForce) < 0 ||
+ GetForceInPx(maxForce) == GetForceInPx(minForce)
+ )
{
RealHeightG = Convert.ToInt32(Math.Ceiling(maxForce)); //Math.Ceiling to ensure the
displ will fit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]