From 139f143c62592ff801d6b8d35d465e9666f84a2f Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 26 Aug 2008 06:59:00 +0000 Subject: [PATCH] fixed warnings. Maybe we should do all the calculations in ints instead of using floats git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27207 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Window.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/servers/app/Window.cpp b/src/servers/app/Window.cpp index edbe2e2ce6..d675bb19d1 100644 --- a/src/servers/app/Window.cpp +++ b/src/servers/app/Window.cpp @@ -509,12 +509,12 @@ Window::SetTopView(View* topView) // fFrame as if it had // make sure the location of the top view on screen matches ours - fTopView->MoveBy(fFrame.left - fTopView->Frame().left, - fFrame.top - fTopView->Frame().top, NULL); + fTopView->MoveBy((int32)(fFrame.left - fTopView->Frame().left), + (int32)(fFrame.top - fTopView->Frame().top), NULL); // make sure the size of the top view matches ours - fTopView->ResizeBy(fFrame.Width() - fTopView->Frame().Width(), - fFrame.Height() - fTopView->Frame().Height(), NULL); + fTopView->ResizeBy((int32)(fFrame.Width() - fTopView->Frame().Width()), + (int32)(fFrame.Height() - fTopView->Frame().Height()), NULL); fTopView->AttachedToWindow(this); } @@ -2061,7 +2061,7 @@ Window::_ObeySizeLimits() if (fDesktop) fDesktop->ResizeWindowBy(this, xDiff, yDiff); else - ResizeBy(xDiff, yDiff, NULL); + ResizeBy((int32)xDiff, (int32)yDiff, NULL); }