gLineChart not drawing to left edge in normal waveform plots

This commit is contained in:
Mark Watkins 2011-08-29 19:34:30 +10:00
parent 7f0699d426
commit 049f819644
2 changed files with 7 additions and 2 deletions

View File

@ -149,7 +149,7 @@ gGraph::gGraph(gGraphView *graphview,QString title,int height,short group) :
m_height(height), m_height(height),
m_visible(true) m_visible(true)
{ {
m_min_height=80; m_min_height=60;
m_layers.clear(); m_layers.clear();
if (graphview) { if (graphview) {
@ -948,7 +948,7 @@ void gGraphView::paintGL()
glVertex2f(0, height()); glVertex2f(0, height());
glVertex2f(0, 0); glVertex2f(0, 0);
glColor4f(0.8,0.8,1.0,1.0); // Gradient End glColor4f(0.3,0.3,1.0,1.0); // Gradient End
glVertex2f(width(), 0); glVertex2f(width(), 0);
glVertex2f(width(), height()); glVertex2f(width(), height());

View File

@ -328,6 +328,11 @@ void gLineChart::paint(gGraph & w,int left, int top, int width, int height)
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
// Normal Waveform Plot // Normal Waveform Plot
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
if (idx>sam) {
idx-=sam;
time=el.time(idx);
//double rate=double(sr)*double(sam);
}
for (int i=idx;i<siz;i+=sam) { for (int i=idx;i<siz;i+=sam) {
time+=rate; time+=rate;
//if (time < minx) //if (time < minx)