scene/cursordelegate_opengl: fix projection matrix with rotated screens
This commit is contained in:
parent
90b2aa25e0
commit
f223362ddf
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ void CursorDelegateOpenGL::paint(const RenderTarget &renderTarget, const QRegion
|
|||
renderLayer.delegate()->postPaint();
|
||||
|
||||
QMatrix4x4 mvp = renderTarget.transformation();
|
||||
mvp.ortho(QRectF(QPointF(0, 0), renderTarget.size()));
|
||||
mvp.ortho(QRectF(QPointF(0, 0), m_output->transform().map(renderTarget.size())));
|
||||
mvp.translate(std::round(cursorRect.x() * scale), std::round(cursorRect.y() * scale));
|
||||
|
||||
GLFramebuffer *fbo = renderTarget.framebuffer();
|
||||
|
|
Loading…
Reference in a new issue