explicit double to int conversion

svn path=/trunk/kdebase/kwin/; revision=77261
This commit is contained in:
Harri Porten 2001-01-10 13:13:00 +00:00
parent 44b018128f
commit 2bfe4742b6

View file

@ -456,10 +456,10 @@ void Manager::animate(bool iconify, int style)
double dch = (ch / 2) * cos(angle); double dch = (ch / 2) * cos(angle);
double midy = cy + (ch / 2); double midy = cy + (ch / 2);
QPoint p1(cx + dx, midy - dch); QPoint p1(int(cx + dx), int(midy - dch));
QPoint p2(cx + cw - dx, p1.y()); QPoint p2(int(cx + cw - dx), p1.y());
QPoint p3(cx + dw + dx, midy + dch); QPoint p3(int(cx + dw + dx), int(midy + dch));
QPoint p4(cx - dx, p3.y()); QPoint p4(int(cx - dx), p3.y());
XGrabServer(qt_xdisplay()); XGrabServer(qt_xdisplay());