mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Correct off-by-one errors with frame resizing on Haiku
* src/haiku_support.cc (UnZoom): (MakeFullscreen): (BWindow_resize): Fix off-by-one errors in calls to `BWindow::ResizeTo'.
This commit is contained in:
parent
b432fb6c86
commit
30d92721ce
1 changed files with 6 additions and 6 deletions
|
|
@ -1047,8 +1047,8 @@ public:
|
||||||
zoomed_p = 0;
|
zoomed_p = 0;
|
||||||
|
|
||||||
EmacsMoveTo (pre_zoom_rect.left, pre_zoom_rect.top);
|
EmacsMoveTo (pre_zoom_rect.left, pre_zoom_rect.top);
|
||||||
ResizeTo (BE_RECT_WIDTH (pre_zoom_rect),
|
ResizeTo (BE_RECT_WIDTH (pre_zoom_rect) - 1,
|
||||||
BE_RECT_HEIGHT (pre_zoom_rect));
|
BE_RECT_HEIGHT (pre_zoom_rect) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -1128,15 +1128,15 @@ public:
|
||||||
int w, h;
|
int w, h;
|
||||||
EmacsMoveTo (0, 0);
|
EmacsMoveTo (0, 0);
|
||||||
GetParentWidthHeight (&w, &h);
|
GetParentWidthHeight (&w, &h);
|
||||||
ResizeTo (w, h);
|
ResizeTo (w - 1, h - 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
flags &= ~(B_NOT_MOVABLE | B_NOT_ZOOMABLE);
|
flags &= ~(B_NOT_MOVABLE | B_NOT_ZOOMABLE);
|
||||||
EmacsMoveTo (pre_fullscreen_rect.left,
|
EmacsMoveTo (pre_fullscreen_rect.left,
|
||||||
pre_fullscreen_rect.top);
|
pre_fullscreen_rect.top);
|
||||||
ResizeTo (BE_RECT_WIDTH (pre_fullscreen_rect),
|
ResizeTo (BE_RECT_WIDTH (pre_fullscreen_rect) - 1,
|
||||||
BE_RECT_HEIGHT (pre_fullscreen_rect));
|
BE_RECT_HEIGHT (pre_fullscreen_rect) - 1);
|
||||||
}
|
}
|
||||||
SetFlags (flags);
|
SetFlags (flags);
|
||||||
}
|
}
|
||||||
|
|
@ -1959,7 +1959,7 @@ BWindow_retitle (void *window, const char *title)
|
||||||
void
|
void
|
||||||
BWindow_resize (void *window, int width, int height)
|
BWindow_resize (void *window, int width, int height)
|
||||||
{
|
{
|
||||||
((BWindow *) window)->ResizeTo (width, height);
|
((BWindow *) window)->ResizeTo (width - 1, height - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Activate WINDOW, making it the subject of keyboard focus and
|
/* Activate WINDOW, making it the subject of keyboard focus and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue