From b4e9060ca7e82eeb30300e45cc54e44c9e05cd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 22 May 2007 12:11:45 +0000 Subject: [PATCH] Sigh ... lround() -> int( round()). BUG: 145780 svn path=/trunk/KDE/kdebase/workspace/; revision=667287 --- effects/desktopgrid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/effects/desktopgrid.cpp b/effects/desktopgrid.cpp index 04f07ad324..8e7d9daebe 100644 --- a/effects/desktopgrid.cpp +++ b/effects/desktopgrid.cpp @@ -278,10 +278,10 @@ QRect DesktopGridEffect::desktopRect( int desktop, bool scaled ) const if( !scaled ) return rect; QRect current = desktopRect( effects->currentDesktop(), false ); - rect = QRect( lround( interpolate( rect.x() - current.x(), rect.x() / float( x ), progress )), - lround( interpolate( rect.y() - current.y(), rect.y() / float( y ), progress )), - lround( interpolate( rect.width(), displayWidth() / float( x ), progress )), - lround( interpolate( rect.height(), displayHeight() / float( y ), progress ))); + rect = QRect( int( round( interpolate( rect.x() - current.x(), rect.x() / float( x ), progress ))), + int( round( interpolate( rect.y() - current.y(), rect.y() / float( y ), progress ))), + int( round( interpolate( rect.width(), displayWidth() / float( x ), progress ))), + int( round( interpolate( rect.height(), displayHeight() / float( y ), progress )))); return rect; }