diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-24 11:15:06 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-11-24 11:16:44 +0000 |
commit | d30cdbbde40e0084c748c11e8f71a449021452c0 (patch) | |
tree | 327d40637538e00256f3b4c67f3b9fa659903e0c /src/haiku_support.cc | |
parent | 3a8e4f13fa43b3636b584f48cddf92de5dc64e4d (diff) | |
download | emacs-d30cdbbde40e0084c748c11e8f71a449021452c0.tar.gz emacs-d30cdbbde40e0084c748c11e8f71a449021452c0.tar.bz2 emacs-d30cdbbde40e0084c748c11e8f71a449021452c0.zip |
Correct adjustments to frame widths in events
* src/haiku_support.cc (EmacsWindow.FrameResized)
(EmacsWindow.Zoom): Adjust widths to fit into the correct
coordinate system.
Diffstat (limited to 'src/haiku_support.cc')
-rw-r--r-- | src/haiku_support.cc | 8 |
1 files 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); |