From: Po Lu Date: Wed, 24 Nov 2021 09:56:29 +0000 (+0000) Subject: Clear past end of frame on Haiku X-Git-Tag: emacs-29.0.90~2852^2~80 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e754973d4ddf6925b0289ce1f2cbbf415310a5da;p=emacs.git 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. --- diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 9fb98f70814..5f9fe7e234f 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -664,8 +664,8 @@ public: { 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); diff --git a/src/haikuterm.c b/src/haikuterm.c index 3e5b6046f6d..97dbe3c8d38 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -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 ();