[chronojump] Jumps/runs/rt simple graph on capture show the 0 line of moving bar
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Jumps/runs/rt simple graph on capture show the 0 line of moving bar
- Date: Sat, 13 Jun 2020 15:47:36 +0000 (UTC)
commit c71ca8d34139b9f015c50bcfbaf68069d562e39e
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jun 12 12:47:23 2020 +0200
Jumps/runs/rt simple graph on capture show the 0 line of moving bar
src/gui/eventExecute.cs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 6ad872e1..b1002093 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -1180,13 +1180,18 @@ public partial class ChronoJumpWindow
movingBar.Next();
Rectangle rect = new Rectangle(movingBar.X, movingBar.Y, movingBar.Width, movingBar.Step);
+ //paint the 0 line
+ event_execute_pixmap.DrawLine(pen_black_90,
+ movingBar.X, movingBar.AltoTop -1,
+ movingBar.X + movingBar.Width, movingBar.AltoTop -1);
+
event_execute_pixmap.DrawRectangle(movingBar.Pen_bar_bg, true, rect);
event_execute_drawingarea.QueueDrawArea(movingBar.X, movingBar.Y, movingBar.Width,
movingBar.Step);
if(movingBar.Y <= movingBar.YTop) {
rect = new Rectangle(movingBar.X, movingBar.YTop, movingBar.Width, movingBar.AltoTop);
event_execute_pixmap.DrawRectangle(pen_black, false, rect);
-
+
if(movingBar.Simulated)
plotSimulatedMessage(movingBar.X + movingBar.Width/2, movingBar.AltoTop,
movingBar.Layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]