[chronojump] RaceAnalyzer capture radial graph results in two lines



commit a6a39a5242d60956378f07bd77a6ca10bce3da2f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 6 17:49:31 2021 +0200

    RaceAnalyzer capture radial graph results in two lines

 src/gui/cairo/radial.cs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/cairo/radial.cs b/src/gui/cairo/radial.cs
index 3f4a36b6..9fc2552d 100644
--- a/src/gui/cairo/radial.cs
+++ b/src/gui/cairo/radial.cs
@@ -136,8 +136,12 @@ public class CairoRadial : CairoGeneric
                printText(Convert.ToInt32(margin + graphWidth/2),
                                Convert.ToInt32(margin + (.66 * graphHeight)),
                                0, textHeight,
-                               "Speed: " + Util.TrimDecimals(speed, 1) + " m/s" +
-                               "\nDistance: " + Util.TrimDecimals(distance, 3) + " m",
+                               "Speed: " + Util.TrimDecimals(speed, 1) + " m/s",
+                               g, alignTypes.CENTER);
+               printText(Convert.ToInt32(margin + graphWidth/2),
+                               Convert.ToInt32(margin + (.66 * graphHeight)) + 20,
+                               0, textHeight,
+                               "Distance: " + Util.TrimDecimals(distance, 3) + " m",
                                g, alignTypes.CENTER);
 
                if(speedMax > speed)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]