Browse Source

GLScopeNG, GLScopeMulti: fixed over VLA replacement

chirpmodem-v8.0.0
f4exb 9 years ago
parent
commit
8ed4abcd2e
  1. 2
      sdrgui/gui/glscopemulti.cpp
  2. 2
      sdrgui/gui/glscopeng.cpp

2
sdrgui/gui/glscopemulti.cpp

@ -1032,7 +1032,7 @@ void GLScopeMulti::applyConfig() @@ -1032,7 +1032,7 @@ void GLScopeMulti::applyConfig()
m_q3TickY1.allocate(4*m_y1Scale.getTickList().count());
m_q3TickY2.allocate(4*m_y2Scale.getTickList().count());
m_q3TickX1.allocate(4*m_x1Scale.getTickList().count());
m_q3TickX2.allocate(4*m_x1Scale.getTickList().count());
m_q3TickX2.allocate(4*m_x2Scale.getTickList().count());
int start = (m_timeOfsProMill/1000.0) * m_traceSize;
int end = std::min(start + m_traceSize/m_timeBase, m_traceSize);

2
sdrgui/gui/glscopeng.cpp

@ -1032,7 +1032,7 @@ void GLScopeNG::applyConfig() @@ -1032,7 +1032,7 @@ void GLScopeNG::applyConfig()
m_q3TickY1.allocate(4*m_y1Scale.getTickList().count());
m_q3TickY2.allocate(4*m_y2Scale.getTickList().count());
m_q3TickX1.allocate(4*m_x1Scale.getTickList().count());
m_q3TickX2.allocate(4*m_x1Scale.getTickList().count());
m_q3TickX2.allocate(4*m_x2Scale.getTickList().count());
int start = (m_timeOfsProMill/1000.0) * m_traceSize;
int end = std::min(start + m_traceSize/m_timeBase, m_traceSize);

Loading…
Cancel
Save