Fix the width and height fields of the B_VIEW_RESIZED message to be of type int32 and not float, as stated in the BeBook. They are rarely used since BView::FrameResize() passes the floats directly from the updated bounds, but at least it should fix the XEmacs port.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37839 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-08-02 11:47:12 +00:00
parent 3c9765c76c
commit a67b5b9911
1 changed files with 2 additions and 2 deletions

View File

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