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
This commit is contained in:
Stefano Ceccherini 2008-08-26 06:59:00 +00:00
parent 47abb8bfef
commit 139f143c62
1 changed files with 5 additions and 5 deletions

View File

@ -509,12 +509,12 @@ Window::SetTopView(View* topView)
// fFrame as if it had // fFrame as if it had
// make sure the location of the top view on screen matches ours // make sure the location of the top view on screen matches ours
fTopView->MoveBy(fFrame.left - fTopView->Frame().left, fTopView->MoveBy((int32)(fFrame.left - fTopView->Frame().left),
fFrame.top - fTopView->Frame().top, NULL); (int32)(fFrame.top - fTopView->Frame().top), NULL);
// make sure the size of the top view matches ours // make sure the size of the top view matches ours
fTopView->ResizeBy(fFrame.Width() - fTopView->Frame().Width(), fTopView->ResizeBy((int32)(fFrame.Width() - fTopView->Frame().Width()),
fFrame.Height() - fTopView->Frame().Height(), NULL); (int32)(fFrame.Height() - fTopView->Frame().Height()), NULL);
fTopView->AttachedToWindow(this); fTopView->AttachedToWindow(this);
} }
@ -2061,7 +2061,7 @@ Window::_ObeySizeLimits()
if (fDesktop) if (fDesktop)
fDesktop->ResizeWindowBy(this, xDiff, yDiff); fDesktop->ResizeWindowBy(this, xDiff, yDiff);
else else
ResizeBy(xDiff, yDiff, NULL); ResizeBy((int32)xDiff, (int32)yDiff, NULL);
} }