mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-31 13:02:27 -04:00
New scope: corrected channel overlay vertical placement
This commit is contained in:
parent
5bee287360
commit
ed2fc4bbe8
@ -1899,13 +1899,13 @@ void GLScopeNG::drawChannelOverlay(
|
|||||||
|
|
||||||
float shiftX = glScopeRect.width() - ((rect.width() + 4.0f) / width());
|
float shiftX = glScopeRect.width() - ((rect.width() + 4.0f) / width());
|
||||||
float rectX = glScopeRect.x() + shiftX;
|
float rectX = glScopeRect.x() + shiftX;
|
||||||
float rectY = 0;
|
float rectY = glScopeRect.y();
|
||||||
float rectW = rect.width() / (float) width();
|
float rectW = rect.width() / (float) width();
|
||||||
float rectH = rect.height() / (float) height();
|
float rectH = rect.height() / (float) height();
|
||||||
|
|
||||||
QMatrix4x4 mat;
|
QMatrix4x4 mat;
|
||||||
mat.setToIdentity();
|
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);
|
mat.scale(2.0f * rectW, -2.0f * rectH);
|
||||||
m_glShaderPowerOverlay.drawSurface(mat, tex1, vtx1, 4);
|
m_glShaderPowerOverlay.drawSurface(mat, tex1, vtx1, 4);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user