emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2b5a2ab 4/6: Fix erasing cursor on top of raised boxes in NS port


From: Po Lu
Subject: master 2b5a2ab 4/6: Fix erasing cursor on top of raised boxes in NS port
Date: Wed, 10 Nov 2021 00:57:40 -0500 (EST)

branch: master
commit 2b5a2ab50b7817f84ae38f84b4ea36ea38cd5a3b
Author: oldosfan <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix erasing cursor on top of raised boxes in NS port
    
    * src/nsterm.m (ns_draw_relief): Clear top and bottom line areas
    first, if required.
---
 src/nsterm.m | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/nsterm.m b/src/nsterm.m
index ed0e7a2..8ee5c03 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3510,6 +3510,12 @@ ns_draw_relief (NSRect outer, int hthickness, int 
vthickness, char raised_p,
 
   [(raised_p ? lightCol : darkCol) set];
 
+  if (top_p)
+    {
+      NSRectFill (NSMakeRect (NSMinX (outer), NSMinY (outer),
+                             NSWidth (outer), hthickness));
+    }
+
   if (top_p || left_p)
     {
       NSBezierPath *p = [NSBezierPath bezierPath];
@@ -3549,6 +3555,12 @@ ns_draw_relief (NSRect outer, int hthickness, int 
vthickness, char raised_p,
       [p closePath];
       [p fill];
     }
+
+  if (bottom_p)
+    {
+      NSRectFill (NSMakeRect (NSMinX (outer), NSMaxY (inner),
+                             NSWidth (outer), hthickness));
+    }
 }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]