aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-11-10 14:04:21 +0800
committerPo Lu2021-11-10 14:04:21 +0800
commitda5de19423af672925ff5f257c26f13635d431cb (patch)
treec22e5ead0bd3aa08948ce9895fef91f3952bd580 /src
parente9b954f0fdc91eaad32d853e82ad8cb4c53c69d2 (diff)
downloademacs-da5de19423af672925ff5f257c26f13635d431cb.tar.gz
emacs-da5de19423af672925ff5f257c26f13635d431cb.zip
Revert "Revert "Fix erasing cursor on top of raised boxes in NS port""
This reverts commit 7117bbc7aa905ae785fa564cb24c3fc75ef1d543.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index ed0e7a2aae8..8ee5c03b97e 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,
3510 3510
3511 [(raised_p ? lightCol : darkCol) set]; 3511 [(raised_p ? lightCol : darkCol) set];
3512 3512
3513 if (top_p)
3514 {
3515 NSRectFill (NSMakeRect (NSMinX (outer), NSMinY (outer),
3516 NSWidth (outer), hthickness));
3517 }
3518
3513 if (top_p || left_p) 3519 if (top_p || left_p)
3514 { 3520 {
3515 NSBezierPath *p = [NSBezierPath bezierPath]; 3521 NSBezierPath *p = [NSBezierPath bezierPath];
@@ -3549,6 +3555,12 @@ ns_draw_relief (NSRect outer, int hthickness, int vthickness, char raised_p,
3549 [p closePath]; 3555 [p closePath];
3550 [p fill]; 3556 [p fill];
3551 } 3557 }
3558
3559 if (bottom_p)
3560 {
3561 NSRectFill (NSMakeRect (NSMinX (outer), NSMaxY (inner),
3562 NSWidth (outer), hthickness));
3563 }
3552} 3564}
3553 3565
3554 3566