Commit 6bd9025b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

screencasting: No need to adjust the scale on the cursor

Otherwise we get some vertical padding when there's scaling


(cherry picked from commit ed9e1e57)
parent cebdc1cc
Pipeline #194126 passed with stage
in 41 minutes and 11 seconds
......@@ -424,7 +424,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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment