[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d30cdbb 2/2: Correct adjustments to frame widths in events
From: |
Po Lu |
Subject: |
master d30cdbb 2/2: Correct adjustments to frame widths in events |
Date: |
Wed, 24 Nov 2021 06:17:21 -0500 (EST) |
branch: master
commit d30cdbbde40e0084c748c11e8f71a449021452c0
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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 8768635..d6d7967 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);