[effects/backgroundcontrast] Calculate correct y-coord of the copy rect
Summary: For more details, see D12452. Reviewers: #kwin, davidedmundson, fredrik, mart Reviewed By: #kwin, davidedmundson, mart Subscribers: romangg, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D12466
This commit is contained in:
parent
184b490c78
commit
309a77eedf
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ void ContrastEffect::doContrast(EffectWindow *w, const QRegion& shape, const QRe
|
||||||
scratch.bind();
|
scratch.bind();
|
||||||
|
|
||||||
const QRect sg = GLRenderTarget::virtualScreenGeometry();
|
const QRect sg = GLRenderTarget::virtualScreenGeometry();
|
||||||
glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, (r.x() - sg.x()) * scale, (sg.height() - sg.y() - r.y() - r.height()) * scale,
|
glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, (r.x() - sg.x()) * scale, (sg.height() - (r.y() - sg.y() + r.height())) * scale,
|
||||||
scratch.width(), scratch.height());
|
scratch.width(), scratch.height());
|
||||||
|
|
||||||
// Draw the texture on the offscreen framebuffer object, while blurring it horizontally
|
// Draw the texture on the offscreen framebuffer object, while blurring it horizontally
|
||||||
|
|
Loading…
Reference in a new issue