Restore full screen redraw in scale/ref change (allow do it in pause and see result)

This commit is contained in:
DiSlord 2020-07-01 12:23:57 +03:00
parent a0ac128406
commit 12567ba1b1
2 changed files with 4 additions and 5 deletions

6
main.c
View file

@ -1703,7 +1703,7 @@ void set_trace_type(int t, int type)
} }
if (force) { if (force) {
plot_into_index(measured); 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) { if (trace[t].channel != channel) {
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) { if (trace[t].scale != scale) {
trace[t].scale = scale; trace[t].scale = scale;
// force_set_markmap(); force_set_markmap();
} }
} }

3
plot.c
View file

@ -1707,8 +1707,7 @@ static void draw_battery_status(void)
void void
request_to_redraw_grid(void) request_to_redraw_grid(void)
{ {
force_set_markmap(); redraw_request |= REDRAW_AREA;
redraw_request |= REDRAW_CELLS;
} }
void void