From: Po Lu Date: Wed, 24 Nov 2021 11:15:06 +0000 (+0000) Subject: Correct adjustments to frame widths in events X-Git-Tag: emacs-29.0.90~2852^2~75 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d30cdbbde40e0084c748c11e8f71a449021452c0;p=emacs.git Correct adjustments to frame widths in events * src/haiku_support.cc (EmacsWindow.FrameResized) (EmacsWindow.Zoom): Adjust widths to fit into the correct coordinate system. --- 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);