effects/glide: Fix transform
Translation should be in logical pixels. BUG: 465849
This commit is contained in:
parent
01fd54d753
commit
c24a5f0395
1 changed files with 1 additions and 2 deletions
|
@ -146,8 +146,7 @@ void GlideEffect::paintWindow(EffectWindow *w, int mask, QRegion region, WindowP
|
|||
data.setProjectionMatrix(invOffsetMatrix * oldProjMatrix);
|
||||
|
||||
// Move the center of the window to the origin.
|
||||
const QRectF screenGeo = scaledRect(effects->renderTargetRect(), scale);
|
||||
const QPointF offset = screenGeo.center() - windowGeo.center();
|
||||
const QPointF offset = effects->renderTargetRect().center() - w->frameGeometry().center();
|
||||
data.translate(offset.x(), offset.y());
|
||||
|
||||
const GlideParams params = w->isDeleted() ? m_outParams : m_inParams;
|
||||
|
|
Loading…
Reference in a new issue