diff options
| author | Po Lu | 2021-11-24 11:15:06 +0000 |
|---|---|---|
| committer | Po Lu | 2021-11-24 11:16:44 +0000 |
| commit | d30cdbbde40e0084c748c11e8f71a449021452c0 (patch) | |
| tree | 327d40637538e00256f3b4c67f3b9fa659903e0c /src | |
| parent | 3a8e4f13fa43b3636b584f48cddf92de5dc64e4d (diff) | |
| download | emacs-d30cdbbde40e0084c748c11e8f71a449021452c0.tar.gz 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')
| -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: | |||
| 664 | { | 664 | { |
| 665 | struct haiku_resize_event rq; | 665 | struct haiku_resize_event rq; |
| 666 | rq.window = this; | 666 | rq.window = this; |
| 667 | rq.px_heightf = newHeight; | 667 | rq.px_heightf = newHeight + 1.0f; |
| 668 | rq.px_widthf = newWidth; | 668 | rq.px_widthf = newWidth + 1.0f; |
| 669 | 669 | ||
| 670 | haiku_write (FRAME_RESIZED, &rq); | 670 | haiku_write (FRAME_RESIZED, &rq); |
| 671 | BDirectWindow::FrameResized (newWidth, newHeight); | 671 | BDirectWindow::FrameResized (newWidth, newHeight); |
| @@ -755,8 +755,8 @@ public: | |||
| 755 | rq.x = o.x; | 755 | rq.x = o.x; |
| 756 | rq.y = o.y; | 756 | rq.y = o.y; |
| 757 | 757 | ||
| 758 | rq.width = w; | 758 | rq.width = w + 1; |
| 759 | rq.height = h; | 759 | rq.height = h + 1; |
| 760 | 760 | ||
| 761 | if (fullscreen_p) | 761 | if (fullscreen_p) |
| 762 | MakeFullscreen (0); | 762 | MakeFullscreen (0); |