Transform error for scope divider / center line

This commit is contained in:
Charles J. Cliffe 2015-08-09 13:23:58 -04:00
parent db8e7a68d0
commit c970f8d5db
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@ void ScopePanel::drawPanelContents() {
bgPanel.calcTransform(transform);
bgPanel.draw();
glLoadIdentity();
glLoadMatrixf(transform);
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r * 0.35, ThemeMgr::mgr.currentTheme->scopeLine.g * 0.35,
ThemeMgr::mgr.currentTheme->scopeLine.b * 0.35);
glBegin (GL_LINES);
@ -45,7 +45,7 @@ void ScopePanel::drawPanelContents() {
bgPanelStereo[1].calcTransform(transform);
bgPanelStereo[1].draw();
glLoadIdentity();
glLoadMatrixf(transform);
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r, ThemeMgr::mgr.currentTheme->scopeLine.g, ThemeMgr::mgr.currentTheme->scopeLine.b);
glBegin (GL_LINES);
glVertex2f(-1.0, 0.0);

View File

@ -69,7 +69,6 @@ void ScopeCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
}
scopePanel.setPoints(avData->waveform_points);
// waveform_points.assign(avData->waveform_points.begin(),avData->waveform_points.end());
setStereo(avData->channels == 2);
avData->decRefCount();