Clear past end of frame on Haiku

* src/haiku_support.c (EmacsWindow.FrameResized): Delete
size adjustment.

* src/haikuterm.c (haiku_clear_frame): Clear one pixel
past the end of the frame.
This commit is contained in:
Po Lu 2021-11-24 09:56:29 +00:00
parent 7394c0fe35
commit e754973d4d
2 changed files with 6 additions and 6 deletions

View file

@ -664,8 +664,8 @@ class EmacsWindow : public BDirectWindow
{
struct haiku_resize_event rq;
rq.window = this;
rq.px_heightf = newHeight + 1.0f;
rq.px_widthf = newWidth + 1.0f;
rq.px_heightf = newHeight;
rq.px_widthf = newWidth;
haiku_write (FRAME_RESIZED, &rq);
BDirectWindow::FrameResized (newWidth, newHeight);

View file

@ -218,11 +218,11 @@ haiku_clear_frame (struct frame *f)
block_input ();
BView_draw_lock (view);
BView_StartClip (view);
BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f),
FRAME_PIXEL_HEIGHT (f));
BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1,
FRAME_PIXEL_HEIGHT (f) + 1);
BView_SetHighColor (view, FRAME_BACKGROUND_PIXEL (f));
BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f),
FRAME_PIXEL_HEIGHT (f));
BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1,
FRAME_PIXEL_HEIGHT (f) + 1);
BView_EndClip (view);
BView_draw_unlock (view);
unblock_input ();