[chronojump] Jumps/Runs capture graph: Improvements on result alignment



commit 6c06139fdf7c873cfe3c4c48f15c49cb32ffa004
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Sep 27 14:20:35 2019 +0200

    Jumps/Runs capture graph: Improvements on result alignment

 src/gui/eventExecute.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index c429f234..9f1c7d8d 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -1149,10 +1149,10 @@ public partial class ChronoJumpWindow
                 * for this reason, show rect and bar in a higher position
                 * use 2*lHeight in order to accomodate "Simulated" message below
                 */
-               int yStart = Convert.ToInt32((y+alto)/2);
+               int yStart = Convert.ToInt32((y+alto)/2) - lHeight/2;
 
-               if( (yStart + 2*lHeight) > alto )
-                       yStart = alto - 2*lHeight;
+               if( (yStart + lHeight) > alto )
+                       yStart = alto - lHeight;
 
                //draw rectangle behind
                Rectangle rect = new Rectangle(x - lWidth/2, yStart, lWidth, lHeight);


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