From a67b5b9911de3226282b52152ad95f0f8523472d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 2 Aug 2010 11:47:12 +0000 Subject: [PATCH] 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 --- src/kits/interface/View.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index b0aed06868..02b981504e 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -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);