]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/haikuterm.c (haiku_clear_frame): Fix clipping.
authorPo Lu <luangruo@yahoo.com>
Sat, 8 Jan 2022 10:41:05 +0000 (10:41 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 8 Jan 2022 10:41:05 +0000 (10:41 +0000)
src/haikuterm.c

index 2239770de95764db20ec4667cb7038eaecdbf840..77e030221ee00694f3a4b7dc41f60b4f8b605f07 100644 (file)
@@ -234,11 +234,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) + 1,
-                   FRAME_PIXEL_HEIGHT (f) + 1);
+  BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f),
+                   FRAME_PIXEL_HEIGHT (f));
   BView_SetHighColor (view, FRAME_BACKGROUND_PIXEL (f));
-  BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1,
-                      FRAME_PIXEL_HEIGHT (f) + 1);
+  BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f) ,
+                      FRAME_PIXEL_HEIGHT (f));
   BView_EndClip (view);
   BView_draw_unlock (view);
   unblock_input ();