From 65387f7cd3a11178b5a3985eb506b2d0489007f4 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 1 Aug 2021 17:14:06 +0200 Subject: [PATCH] Fix zeroing n param when running --- client/src/graph.c | 1 + client/src/proxgui.h | 2 +- client/src/proxguiqt.h | 1 - client/src/ui.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/graph.c b/client/src/graph.c index 5a9fb3b33..769a87c77 100644 --- a/client/src/graph.c +++ b/client/src/graph.c @@ -43,6 +43,7 @@ size_t ClearGraph(bool redraw) { size_t gtl = GraphTraceLen; memset(GraphBuffer, 0x00, GraphTraceLen); GraphTraceLen = 0; + GraphStop = 0; if (redraw) RepaintGraphWindow(); return gtl; diff --git a/client/src/proxgui.h b/client/src/proxgui.h index f5942e926..08efbd31e 100644 --- a/client/src/proxgui.h +++ b/client/src/proxgui.h @@ -35,7 +35,7 @@ void ExitGraphics(void); extern double CursorScaleFactor; extern char CursorScaleFactorUnit[11]; extern double PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, GridOffset; -extern uint32_t CursorCPos, CursorDPos; +extern uint32_t CursorCPos, CursorDPos, GraphStop; extern int CommandFinished; extern int offline; extern bool GridLocked; diff --git a/client/src/proxguiqt.h b/client/src/proxguiqt.h index 326274ae8..e8754361e 100644 --- a/client/src/proxguiqt.h +++ b/client/src/proxguiqt.h @@ -33,7 +33,6 @@ class Plot: public QWidget { private: QWidget *master; uint32_t GraphStart; // Starting point/offset for the left side of the graph - uint32_t GraphStop; // Stop point/offset for the right side of the graph double GraphPixelsPerPoint; // How many visual pixels are between each sample point (x axis) uint32_t CursorAPos; uint32_t CursorBPos; diff --git a/client/src/ui.c b/client/src/ui.c index a044d7312..40d86538f 100644 --- a/client/src/ui.c +++ b/client/src/ui.c @@ -44,7 +44,7 @@ session_arg_t session; double CursorScaleFactor = 1; char CursorScaleFactorUnit[11] = {0}; double PlotGridX = 0, PlotGridY = 0, PlotGridXdefault = 64, PlotGridYdefault = 64; -uint32_t CursorCPos = 0, CursorDPos = 0; +uint32_t CursorCPos = 0, CursorDPos = 0, GraphStop = 0; double GraphPixelsPerPoint = 1.f; // How many visual pixels are between each sample point (x axis) static bool flushAfterWrite = 0; double GridOffset = 0;