From ed9e1e57b3f6a68c54cebf2fd0263b8aebe110e7 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 22 Jun 2022 02:39:39 +0200 Subject: [PATCH] screencasting: No need to adjust the scale on the cursor Otherwise we get some vertical padding when there's scaling --- src/plugins/screencast/screencaststream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index 9167b8ba6b..998690ad88 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -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);