From 80c52346c287ddc5e15663c25a1fea18d2ee4fad Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 16 Jan 2022 00:47:41 +0000 Subject: [PATCH] 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. --- src/haiku_support.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2