[chronojump] Encoder Person's best with discont line



commit 7ac1e670729a48335d36017319cb16197c61bb18
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 12 13:15:56 2020 +0100

    Encoder Person's best with discont line

 src/gui/encoderGraphObjects.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/encoderGraphObjects.cs b/src/gui/encoderGraphObjects.cs
index 9f5cdb44..01982fe2 100644
--- a/src/gui/encoderGraphObjects.cs
+++ b/src/gui/encoderGraphObjects.cs
@@ -62,6 +62,7 @@ public class EncoderGraphDoPlot
         Pango.Layout layout_encoder_capture_curves_bars_superbig; //PlaySounds wewillrockyou
 
        Gdk.GC pen_black_encoder_capture;
+       Gdk.GC pen_black_encoder_capture_discont;
        Gdk.GC pen_gray;
        Gdk.GC pen_gray_loss;
 
@@ -242,6 +243,7 @@ public class EncoderGraphDoPlot
                //defined as drawingarea instead of encoder_capture_signal_drawingarea
                //because the 2nd is null if config.EncoderCaptureShowOnlyBars == TRUE
                pen_black_encoder_capture = new Gdk.GC(drawingarea.GdkWindow);
+               pen_black_encoder_capture_discont = new Gdk.GC(drawingarea.GdkWindow);
                pen_gray = new Gdk.GC(drawingarea.GdkWindow);
                pen_gray_loss = new Gdk.GC(drawingarea.GdkWindow);
                pen_red_encoder_capture = new Gdk.GC(drawingarea.GdkWindow);
@@ -278,6 +280,7 @@ public class EncoderGraphDoPlot
                colormap.AllocColor (ref UtilGtk.SELECTED,true,true);
 
                pen_black_encoder_capture.Foreground = UtilGtk.BLACK;
+               pen_black_encoder_capture_discont.Foreground = UtilGtk.BLACK;
                pen_gray.Foreground = UtilGtk.GRAY;
                pen_gray_loss.Foreground = UtilGtk.GRAY_LIGHT;
                pen_red_encoder_capture.Foreground = UtilGtk.RED_PLOTS;
@@ -294,6 +297,7 @@ public class EncoderGraphDoPlot
                pen_selected_encoder_capture.Foreground = UtilGtk.SELECTED;
 
                pen_black_encoder_capture.SetLineAttributes (2, Gdk.LineStyle.Solid, Gdk.CapStyle.NotLast, 
Gdk.JoinStyle.Miter);
+               pen_black_encoder_capture_discont.SetLineAttributes (2, Gdk.LineStyle.OnOffDash, 
Gdk.CapStyle.NotLast, Gdk.JoinStyle.Miter);
                pen_selected_encoder_capture.SetLineAttributes (2, Gdk.LineStyle.Solid, Gdk.CapStyle.NotLast, 
Gdk.JoinStyle.Miter);
                pen_gray_loss.SetLineAttributes (5, Gdk.LineStyle.Solid, Gdk.CapStyle.NotLast, 
Gdk.JoinStyle.Miter);
 
@@ -448,7 +452,7 @@ public class EncoderGraphDoPlot
                                                left_margin, top_margin - textHeight,
                                                layout_encoder_capture_curves_bars_text);
 
-                       pixmap.DrawLine(pen_black_encoder_capture,
+                       pixmap.DrawLine(pen_black_encoder_capture_discont,
                                        left_margin, top_margin,
                                        graphWidth - right_margin, top_margin);
 


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