1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

New scope: corrected channel overlay vertical placement

This commit is contained in:
f4exb 2017-02-26 11:50:06 +01:00
parent 5bee287360
commit ed2fc4bbe8

View File

@ -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);
}