[chronojump] RaceAnalyzer capture radial graph results in two lines
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RaceAnalyzer capture radial graph results in two lines
- Date: Tue, 6 Apr 2021 17:17:12 +0000 (UTC)
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]