Correct adjustments to frame widths in events

* src/haiku_support.cc (EmacsWindow.FrameResized)
(EmacsWindow.Zoom): Adjust widths to fit into the correct
coordinate system.
This commit is contained in:
Po Lu 2021-11-24 11:15:06 +00:00
parent 3a8e4f13fa
commit d30cdbbde4

View file

@ -664,8 +664,8 @@ class EmacsWindow : public BDirectWindow
{
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 @@ class EmacsWindow : public BDirectWindow
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);