Do not round integer values

This commit is contained in:
Martin Gräßlin 2013-03-15 15:51:36 +01:00
parent 9a6b1159fe
commit 649264d738

View file

@ -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);
}