]> git.eshelyaron.com Git - emacs.git/commitdiff
Clear past end of frame on Haiku
authorPo Lu <luangruo@yahoo.com>
Wed, 24 Nov 2021 09:56:29 +0000 (09:56 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 24 Nov 2021 09:56:29 +0000 (09:56 +0000)
* src/haiku_support.c (EmacsWindow.FrameResized): Delete
size adjustment.

* src/haikuterm.c (haiku_clear_frame): Clear one pixel
past the end of the frame.

src/haiku_support.cc
src/haikuterm.c

index 9fb98f70814f3ed0c39f6b9d538c42b24ae1f6c9..5f9fe7e234fb703f8f84b9f62c4b2c54ef06974b 100644 (file)
@@ -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);
index 3e5b6046f6d3e998b95be764a5aba9d967def413..97dbe3c8d38b28435ea7c4125b92ed19ed06e313 100644 (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 ();