Use IntegerWidth() & friend to avoid the cast, doesn't hurt.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37841 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-08-02 12:48:30 +00:00
parent 6b7acd5159
commit 3c38ebff78

View File

@ -5270,8 +5270,8 @@ BView::_ResizeBy(int32 deltaWidth, int32 deltaHeight)
if (fFlags & B_FRAME_EVENTS) { if (fFlags & B_FRAME_EVENTS) {
BMessage resized(B_VIEW_RESIZED); BMessage resized(B_VIEW_RESIZED);
resized.AddInt64("when", system_time()); resized.AddInt64("when", system_time());
resized.AddInt32("width", fBounds.Width()); resized.AddInt32("width", fBounds.IntegerWidth());
resized.AddInt32("height", fBounds.Height()); resized.AddInt32("height", fBounds.IntegerHeight());
BMessenger target(this); BMessenger target(this);
target.SendMessage(&resized); target.SendMessage(&resized);