mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 13:51:47 -05:00
New scope: trace overlay implemented on all displays
This commit is contained in:
parent
82d55764a9
commit
14d5b5e913
@ -346,7 +346,17 @@ void GLScopeNG::paintGL()
|
|||||||
mat.translate(-1.0f + 2.0f * rectX, 1.0f - 2.0f * rectY);
|
mat.translate(-1.0f + 2.0f * rectX, 1.0f - 2.0f * rectY);
|
||||||
mat.scale(2.0f * rectW, -2.0f * rectH);
|
mat.scale(2.0f * rectW, -2.0f * rectH);
|
||||||
m_glShaderSimple.drawSegments(mat, color, q3, 2);
|
m_glShaderSimple.drawSegments(mat, color, q3, 2);
|
||||||
} // display trace
|
} // display trigger
|
||||||
|
|
||||||
|
// Paint overlay if any
|
||||||
|
if ((m_focusedTraceIndex == 0) && (traceData.m_hasTextOverlay))
|
||||||
|
{
|
||||||
|
drawChannelOverlay(
|
||||||
|
traceData.m_textOverlay,
|
||||||
|
traceData.m_traceColor,
|
||||||
|
m_channelOverlayPixmap1,
|
||||||
|
m_glScopeRect1);
|
||||||
|
}
|
||||||
} // trace length > 0
|
} // trace length > 0
|
||||||
} // Display X
|
} // Display X
|
||||||
|
|
||||||
@ -509,6 +519,17 @@ void GLScopeNG::paintGL()
|
|||||||
mat.scale(2.0f * rectW, -2.0f * rectH);
|
mat.scale(2.0f * rectW, -2.0f * rectH);
|
||||||
m_glShaderSimple.drawSegments(mat, color, q3, 2);
|
m_glShaderSimple.drawSegments(mat, color, q3, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paint overlay if any
|
||||||
|
if ((i == m_focusedTraceIndex) && (traceData.m_hasTextOverlay))
|
||||||
|
{
|
||||||
|
drawChannelOverlay(
|
||||||
|
traceData.m_textOverlay,
|
||||||
|
traceData.m_traceColor,
|
||||||
|
m_channelOverlayPixmap2,
|
||||||
|
m_glScopeRect2);
|
||||||
|
}
|
||||||
|
|
||||||
} // one trace display
|
} // one trace display
|
||||||
} // trace length > 0
|
} // trace length > 0
|
||||||
} // Display Y
|
} // Display Y
|
||||||
|
Loading…
Reference in New Issue
Block a user