summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-16 00:47:41 +0000
committerPo Lu <luangruo@yahoo.com>2022-01-16 00:47:41 +0000
commit80c52346c287ddc5e15663c25a1fea18d2ee4fad (patch)
tree685d32678857019bca58ae439a59a5b92c924410
parent77d823794eacd73469d32fe780b7dd4eae213b34 (diff)
downloademacs-80c52346c287ddc5e15663c25a1fea18d2ee4fad.tar.gz
Fix a minor snafu when resizing frames on Haiku
* src/haiku_support.cc (BWindow_resize): Adjust for minor snafu where BWindow::ResizeTo uses BRect-style width and height instead of actual width and height.
-rw-r--r--src/haiku_support.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index d49e319b98c..4b180f98b7c 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -1861,7 +1861,7 @@ BWindow_retitle (void *window, const char *title)
void
BWindow_resize (void *window, int width, int height)
{
- ((BWindow *) window)->ResizeTo (width, height);
+ ((BWindow *) window)->ResizeTo (width - 1, height - 1);
}
/* Activate WINDOW, making it the subject of keyboard focus and