[chronojump] forceSensorAnalyze manual AB letters at bottom



commit 7b9f5e81af716c26d16a6b7855a6b38c4d7f32e0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon May 7 16:11:48 2018 +0200

    forceSensorAnalyze manual AB letters at bottom

 src/gui/forceSensorAnalyze.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/forceSensorAnalyze.cs b/src/gui/forceSensorAnalyze.cs
index aea2e32..8016420 100644
--- a/src/gui/forceSensorAnalyze.cs
+++ b/src/gui/forceSensorAnalyze.cs
@@ -686,14 +686,14 @@ public partial class ChronoJumpWindow
                // 4) paint vertical yellow lines A, B and write letter
                int xposA = fsAI.GetVerticalLinePosition(hscaleLower, fsAI.GetLength());
                force_sensor_ai_pixmap.DrawLine(pen_yellow_force_ai,
-                               xposA, 20, xposA, allocation.Height);
+                               xposA, 0, xposA, allocation.Height -20);
 
                layout_force_ai_text.SetMarkup("A");
                int textWidth = 1;
                int textHeight = 1;
                layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
                force_sensor_ai_pixmap.DrawLayout (pen_yellow_force_ai,
-                               xposA - textWidth/2, 0,
+                               xposA - textWidth/2, allocation.Height - textHeight,
                                layout_force_ai_text);
 
                int xposB = 0;
@@ -701,14 +701,14 @@ public partial class ChronoJumpWindow
                {
                        xposB = fsAI.GetVerticalLinePosition(hscaleHigher, fsAI.GetLength());
                        force_sensor_ai_pixmap.DrawLine(pen_yellow_force_ai,
-                                       xposB, 20, xposB, allocation.Height);
+                                       xposB, 0, xposB, allocation.Height -20);
 
                        layout_force_ai_text.SetMarkup("B");
                        textWidth = 1;
                        textHeight = 1;
                        layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
                        force_sensor_ai_pixmap.DrawLayout (pen_yellow_force_ai,
-                                       xposB - textWidth/2, 0,
+                                       xposB - textWidth/2, allocation.Height -20,
                                        layout_force_ai_text);
                }
 


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