Do not round integer values
This commit is contained in:
parent
9a6b1159fe
commit
649264d738
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ void DesktopGridEffect::paintScreen(int mask, QRegion region, ScreenPaintData& d
|
|||
QRect geo = m_windowMoveGeometry.translated(diff);
|
||||
WindowPaintData d(windowMove);
|
||||
d *= QVector2D((qreal)geo.width() / (qreal)windowMove->width(), (qreal)geo.height() / (qreal)windowMove->height());
|
||||
d += QPoint(qRound(geo.left() - windowMove->x()), qRound(geo.top() - windowMove->y()));
|
||||
d += QPoint(geo.left() - windowMove->x(), geo.top() - windowMove->y());
|
||||
effects->drawWindow(windowMove, PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, infiniteRegion(), d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue