From d30cdbbde40e0084c748c11e8f71a449021452c0 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 24 Nov 2021 11:15:06 +0000 Subject: [PATCH] Correct adjustments to frame widths in events * src/haiku_support.cc (EmacsWindow.FrameResized) (EmacsWindow.Zoom): Adjust widths to fit into the correct coordinate system. --- src/haiku_support.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 8768635069d..d6d7967524c 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -664,8 +664,8 @@ public: { struct haiku_resize_event rq; rq.window = this; - rq.px_heightf = newHeight; - rq.px_widthf = newWidth; + rq.px_heightf = newHeight + 1.0f; + rq.px_widthf = newWidth + 1.0f; haiku_write (FRAME_RESIZED, &rq); BDirectWindow::FrameResized (newWidth, newHeight); @@ -755,8 +755,8 @@ public: rq.x = o.x; rq.y = o.y; - rq.width = w; - rq.height = h; + rq.width = w + 1; + rq.height = h + 1; if (fullscreen_p) MakeFullscreen (0); -- 2.39.2