From 12567ba1b185a9195cecffdcfcc6fcd64126c44c Mon Sep 17 00:00:00 2001 From: DiSlord Date: Wed, 1 Jul 2020 12:23:57 +0300 Subject: [PATCH] Restore full screen redraw in scale/ref change (allow do it in pause and see result) --- main.c | 6 +++--- plot.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index f8645a6..54cf1ad 100644 --- a/main.c +++ b/main.c @@ -1703,7 +1703,7 @@ void set_trace_type(int t, int type) } if (force) { plot_into_index(measured); -// force_set_markmap(); + force_set_markmap(); } } @@ -1711,7 +1711,7 @@ void set_trace_channel(int t, int channel) { if (trace[t].channel != channel) { trace[t].channel = channel; -// force_set_markmap(); + force_set_markmap(); } } @@ -1719,7 +1719,7 @@ void set_trace_scale(int t, float scale) { if (trace[t].scale != scale) { trace[t].scale = scale; -// force_set_markmap(); + force_set_markmap(); } } diff --git a/plot.c b/plot.c index 1b03afe..4e881b4 100644 --- a/plot.c +++ b/plot.c @@ -1707,8 +1707,7 @@ static void draw_battery_status(void) void request_to_redraw_grid(void) { - force_set_markmap(); - redraw_request |= REDRAW_CELLS; + redraw_request |= REDRAW_AREA; } void