diff --git a/global.h b/global.h index d6253fa..a3b9e21 100644 --- a/global.h +++ b/global.h @@ -35,7 +35,7 @@ #define PROGRAM_NAME "DSRemote" -#define PROGRAM_VERSION "0.34_1701071043" +#define PROGRAM_VERSION "0.34_1701071126" #define MAX_PATHLEN 4096 diff --git a/save_data.cpp b/save_data.cpp index e6d8873..4457f02 100644 --- a/save_data.cpp +++ b/save_data.cpp @@ -440,7 +440,7 @@ void UI_Mainwindow::save_memory_waveform(int job) break; } - wavbuf[chn][bytes_rcvd + k] = ((int)(((unsigned char *)device->buf)[k]) - yref[chn] - yor[chn]) << 5; + wavbuf[chn][bytes_rcvd + k] = ((int)(((unsigned char *)device->buf)[k]) - yref[chn]) << 5; } bytes_rcvd += n; diff --git a/wave_view.cpp b/wave_view.cpp index 5d5bc84..552446d 100644 --- a/wave_view.cpp +++ b/wave_view.cpp @@ -311,8 +311,6 @@ void WaveCurve::paintEvent(QPaintEvent *) h_trace_offset = curve_h / 2; - h_trace_offset -= ((devparms->chanoffset[chn] / (devparms->chanscale[chn] * devparms->vertdivisions)) * (double)curve_h); - painter->setPen(QPen(QBrush(SignalColor[chn], Qt::SolidPattern), tracewidth, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin)); for(i=0; i