Mew scope: fixed polar time offset

This commit is contained in:
f4exb 2017-02-25 04:45:30 +01:00
parent aa47e0fb94
commit 301e491cd4
1 changed files with 2 additions and 2 deletions

View File

@ -829,7 +829,7 @@ void GLScopeNG::paintGL()
GLfloat q3[2*(end - start)];
const float *trace0 = (*m_traces)[0];
memcpy(q3, &(trace0[1]), (2*(end - start) - 1)*sizeof(float)); // copy X values
memcpy(q3, &(trace0[2*start+1]), (2*(end - start) - 1)*sizeof(float)); // copy X values
for (int i = 1; i < m_traces->size(); i++)
{
@ -838,7 +838,7 @@ void GLScopeNG::paintGL()
for(int i = start; i < end; i++)
{
float y = trace[2*(i-start)+1];
float y = trace[2*i+1];
q3[2*(i-start)+1] = y;
}