screencasting: No need to adjust the scale on the cursor

Otherwise we get some vertical padding when there's scaling
This commit is contained in:
Aleix Pol 2022-06-22 02:39:39 +02:00
parent fd25e96969
commit ed9e1e57b3

View file

@ -444,7 +444,7 @@ void ScreenCastStream::recordFrame(const QRegion &damagedRegion)
m_cursor.texture->setYInverted(false);
m_cursor.texture->bind();
const auto cursorRect = cursorGeometry(cursor);
mvp.translate(cursorRect.left(), r.height() - cursorRect.top() - cursor->image().height() * m_cursor.scale);
mvp.translate(cursorRect.left(), r.height() - cursorRect.top() - cursor->image().height());
shader->setUniform(GLShader::ModelViewProjectionMatrix, mvp);
glEnable(GL_BLEND);