From 2bfe4742b64efb90c1788eaafcc56ce9bfcf8e88 Mon Sep 17 00:00:00 2001 From: Harri Porten Date: Wed, 10 Jan 2001 13:13:00 +0000 Subject: [PATCH] explicit double to int conversion svn path=/trunk/kdebase/kwin/; revision=77261 --- clients/riscos/Manager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clients/riscos/Manager.cpp b/clients/riscos/Manager.cpp index 7d095f8f79..e4b2bf26ff 100644 --- a/clients/riscos/Manager.cpp +++ b/clients/riscos/Manager.cpp @@ -456,11 +456,11 @@ void Manager::animate(bool iconify, int style) double dch = (ch / 2) * cos(angle); double midy = cy + (ch / 2); - QPoint p1(cx + dx, midy - dch); - QPoint p2(cx + cw - dx, p1.y()); - QPoint p3(cx + dw + dx, midy + dch); - QPoint p4(cx - dx, p3.y()); - + QPoint p1(int(cx + dx), int(midy - dch)); + QPoint p2(int(cx + cw - dx), p1.y()); + QPoint p3(int(cx + dw + dx), int(midy + dch)); + QPoint p4(int(cx - dx), p3.y()); + XGrabServer(qt_xdisplay()); p.drawLine(p1, p2);