mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 21:58:37 -05:00
Transform error for scope divider / center line
This commit is contained in:
parent
db8e7a68d0
commit
c970f8d5db
@ -29,7 +29,7 @@ void ScopePanel::drawPanelContents() {
|
|||||||
bgPanel.calcTransform(transform);
|
bgPanel.calcTransform(transform);
|
||||||
bgPanel.draw();
|
bgPanel.draw();
|
||||||
|
|
||||||
glLoadIdentity();
|
glLoadMatrixf(transform);
|
||||||
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r * 0.35, ThemeMgr::mgr.currentTheme->scopeLine.g * 0.35,
|
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r * 0.35, ThemeMgr::mgr.currentTheme->scopeLine.g * 0.35,
|
||||||
ThemeMgr::mgr.currentTheme->scopeLine.b * 0.35);
|
ThemeMgr::mgr.currentTheme->scopeLine.b * 0.35);
|
||||||
glBegin (GL_LINES);
|
glBegin (GL_LINES);
|
||||||
@ -45,7 +45,7 @@ void ScopePanel::drawPanelContents() {
|
|||||||
bgPanelStereo[1].calcTransform(transform);
|
bgPanelStereo[1].calcTransform(transform);
|
||||||
bgPanelStereo[1].draw();
|
bgPanelStereo[1].draw();
|
||||||
|
|
||||||
glLoadIdentity();
|
glLoadMatrixf(transform);
|
||||||
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r, ThemeMgr::mgr.currentTheme->scopeLine.g, ThemeMgr::mgr.currentTheme->scopeLine.b);
|
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r, ThemeMgr::mgr.currentTheme->scopeLine.g, ThemeMgr::mgr.currentTheme->scopeLine.b);
|
||||||
glBegin (GL_LINES);
|
glBegin (GL_LINES);
|
||||||
glVertex2f(-1.0, 0.0);
|
glVertex2f(-1.0, 0.0);
|
||||||
|
@ -69,7 +69,6 @@ void ScopeCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scopePanel.setPoints(avData->waveform_points);
|
scopePanel.setPoints(avData->waveform_points);
|
||||||
// waveform_points.assign(avData->waveform_points.begin(),avData->waveform_points.end());
|
|
||||||
setStereo(avData->channels == 2);
|
setStereo(avData->channels == 2);
|
||||||
|
|
||||||
avData->decRefCount();
|
avData->decRefCount();
|
||||||
|
Loading…
Reference in New Issue
Block a user