From ed2fc4bbe8b69f3e32812e34a614ddee6aebdcef Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 26 Feb 2017 11:50:06 +0100 Subject: [PATCH] New scope: corrected channel overlay vertical placement --- sdrbase/gui/glscopeng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdrbase/gui/glscopeng.cpp b/sdrbase/gui/glscopeng.cpp index a39c4fd77..d5b4025ee 100644 --- a/sdrbase/gui/glscopeng.cpp +++ b/sdrbase/gui/glscopeng.cpp @@ -1899,13 +1899,13 @@ void GLScopeNG::drawChannelOverlay( float shiftX = glScopeRect.width() - ((rect.width() + 4.0f) / width()); float rectX = glScopeRect.x() + shiftX; - float rectY = 0; + float rectY = glScopeRect.y(); float rectW = rect.width() / (float) width(); float rectH = rect.height() / (float) height(); QMatrix4x4 mat; mat.setToIdentity(); - mat.translate(-1.0f + 2.0f * rectX, 0.96f - 2.0f * rectY); + mat.translate(-1.0f + 2.0f * rectX, 1.0f - 2.0f * rectY); mat.scale(2.0f * rectW, -2.0f * rectH); m_glShaderPowerOverlay.drawSurface(mat, tex1, vtx1, 4); }