Commit 0d2fd365 authored by Cédric Brégardis's avatar Cédric Brégardis Committed by Albert Astals Cid
Browse files

Fix upscaling artifacts in VncView

Edges of updated regions are not correctly painted when upscaling a
VNC session. Increasing the updated rectangle by one pixel fixes the
problem.

BUG: 432759
parent ba6baad9
......@@ -496,7 +496,7 @@ void VncView::updateImage(int x, int y, int w, int h)
}
const auto dpr = m_frame.devicePixelRatio();
repaint(QRectF(x / dpr * m_horizontalFactor, y / dpr * m_verticalFactor, w / dpr * m_horizontalFactor, h / dpr * m_verticalFactor).toAlignedRect());
repaint(QRectF(x / dpr * m_horizontalFactor, y / dpr * m_verticalFactor, w / dpr * m_horizontalFactor, h / dpr * m_verticalFactor).toAlignedRect().adjusted(-1,-1,1,1));
}
void VncView::setViewOnly(bool viewOnly)
......
Markdown is supported
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