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:
parent
3a8e4f13fa
commit
d30cdbbde4
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue