Sigh ... lround() -> int( round()).
BUG: 145780 svn path=/trunk/KDE/kdebase/workspace/; revision=667287
This commit is contained in:
parent
fe3e66deb3
commit
b4e9060ca7
1 changed files with 4 additions and 4 deletions
|
@ -278,10 +278,10 @@ QRect DesktopGridEffect::desktopRect( int desktop, bool scaled ) const
|
||||||
if( !scaled )
|
if( !scaled )
|
||||||
return rect;
|
return rect;
|
||||||
QRect current = desktopRect( effects->currentDesktop(), false );
|
QRect current = desktopRect( effects->currentDesktop(), false );
|
||||||
rect = QRect( lround( interpolate( rect.x() - current.x(), rect.x() / float( x ), progress )),
|
rect = QRect( int( round( interpolate( rect.x() - current.x(), rect.x() / float( x ), progress ))),
|
||||||
lround( interpolate( rect.y() - current.y(), rect.y() / float( y ), progress )),
|
int( round( interpolate( rect.y() - current.y(), rect.y() / float( y ), progress ))),
|
||||||
lround( interpolate( rect.width(), displayWidth() / float( x ), progress )),
|
int( round( interpolate( rect.width(), displayWidth() / float( x ), progress ))),
|
||||||
lround( interpolate( rect.height(), displayHeight() / float( y ), progress )));
|
int( round( interpolate( rect.height(), displayHeight() / float( y ), progress ))));
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue