scene: use fractionalGeometry() as input of RenderViewport renderRect
Fixes mismatches between renderTarget.size() and deivce geometry calculated using viewport.renderRect() * viewport.scale() . BUG: 475325
This commit is contained in:
parent
357fba6a08
commit
3d4036210d
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ void WorkspaceScene::postPaint()
|
|||
void WorkspaceScene::paint(const RenderTarget &renderTarget, const QRegion ®ion)
|
||||
{
|
||||
Output *output = kwinApp()->operationMode() == Application::OperationMode::OperationModeX11 ? nullptr : painted_screen;
|
||||
RenderViewport viewport(output ? output->geometry() : workspace()->geometry(), output ? output->scale() : 1, renderTarget);
|
||||
RenderViewport viewport(output ? output->fractionalGeometry() : workspace()->geometry(), output ? output->scale() : 1, renderTarget);
|
||||
|
||||
m_renderer->beginFrame(renderTarget, viewport);
|
||||
|
||||
|
|
Loading…
Reference in a new issue