Merge branch 'Plasma/5.11'
This commit is contained in:
commit
20db59ac1f
2 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ bool EglGbmBackend::makeContextCurrent(const Output &output)
|
||||||
|
|
||||||
qreal scale = output.output->scale();
|
qreal scale = output.output->scale();
|
||||||
|
|
||||||
glViewport(-v.x() * scale, (v.height() - overall.height() - v.y()) * scale,
|
glViewport(-v.x() * scale, (v.height() - overall.height() + v.y()) * scale,
|
||||||
overall.width() * scale, overall.height() * scale);
|
overall.width() * scale, overall.height() * scale);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ void EglX11Backend::setupViewport(int screenId)
|
||||||
// TODO: are the values correct?
|
// TODO: are the values correct?
|
||||||
|
|
||||||
qreal scale = screens()->scale(screenId);
|
qreal scale = screens()->scale(screenId);
|
||||||
glViewport(-v.x(), v.height() - overall.height() - v.y(), overall.width() * scale, overall.height() * scale);
|
glViewport(-v.x(), v.height() - overall.height() + v.y(), overall.width() * scale, overall.height() * scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EglX11Backend::endRenderingFrameForScreen(int screenId, const QRegion &renderedRegion, const QRegion &damagedRegion)
|
void EglX11Backend::endRenderingFrameForScreen(int screenId, const QRegion &renderedRegion, const QRegion &damagedRegion)
|
||||||
|
|
Loading…
Reference in a new issue