]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct adjustments to frame widths in events
authorPo Lu <luangruo@yahoo.com>
Wed, 24 Nov 2021 11:15:06 +0000 (11:15 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 24 Nov 2021 11:16:44 +0000 (11:16 +0000)
* src/haiku_support.cc (EmacsWindow.FrameResized)
(EmacsWindow.Zoom): Adjust widths to fit into the correct
coordinate system.

src/haiku_support.cc

index 8768635069d1e0d1664d7fa744d52760cdfec241..d6d7967524c060952e83d0a187c151388947ef5f 100644 (file)
@@ -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);