mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-04 06:07:49 -04:00
X/Y scope fading tweak
This commit is contained in:
parent
380a5e4c2e
commit
ceb6d62089
@ -65,17 +65,17 @@ void ScopePanel::drawPanelContents() {
|
|||||||
|
|
||||||
} else if (scopeMode == SCOPE_MODE_XY) {
|
} else if (scopeMode == SCOPE_MODE_XY) {
|
||||||
RGBA4f bg1(ThemeMgr::mgr.currentTheme->scopeBackground), bg2(ThemeMgr::mgr.currentTheme->scopeBackground * 2.0);
|
RGBA4f bg1(ThemeMgr::mgr.currentTheme->scopeBackground), bg2(ThemeMgr::mgr.currentTheme->scopeBackground * 2.0);
|
||||||
bg1.a = 0.1;
|
bg1.a = 0.05;
|
||||||
bg2.a = 0.1;
|
bg2.a = 0.05;
|
||||||
bgPanel.setFillColor(bg1, bg2);
|
bgPanel.setFillColor(bg1, bg2);
|
||||||
bgPanel.calcTransform(transform);
|
bgPanel.calcTransform(transform);
|
||||||
bgPanel.draw();
|
bgPanel.draw();
|
||||||
glLineWidth(1.0);
|
glLineWidth(1.0);
|
||||||
glEnable(GL_POINT_SMOOTH);
|
glEnable(GL_POINT_SMOOTH);
|
||||||
glPointSize(2.0);
|
glPointSize(1.0);
|
||||||
glLoadMatrixf(transform);
|
glLoadMatrixf(transform);
|
||||||
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r * 0.35, ThemeMgr::mgr.currentTheme->scopeLine.g * 0.35,
|
glColor3f(ThemeMgr::mgr.currentTheme->scopeLine.r * 0.15, ThemeMgr::mgr.currentTheme->scopeLine.g * 0.15,
|
||||||
ThemeMgr::mgr.currentTheme->scopeLine.b * 0.35);
|
ThemeMgr::mgr.currentTheme->scopeLine.b * 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (points.size()) {
|
if (points.size()) {
|
||||||
@ -83,7 +83,7 @@ void ScopePanel::drawPanelContents() {
|
|||||||
glEnable (GL_LINE_SMOOTH);
|
glEnable (GL_LINE_SMOOTH);
|
||||||
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
|
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
|
||||||
if (scopeMode == SCOPE_MODE_XY) {
|
if (scopeMode == SCOPE_MODE_XY) {
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
|
glBlendFunc(GL_ONE, GL_ONE);
|
||||||
} else {
|
} else {
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user