emacs-diffs
[Top][All Lists]
Advanced

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

master 48c422e255: Fix display of hollow box cursor on NS


From: Po Lu
Subject: master 48c422e255: Fix display of hollow box cursor on NS
Date: Sun, 8 May 2022 01:44:43 -0400 (EDT)

branch: master
commit 48c422e255095658ea8ff20a59a6d306910281c5
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix display of hollow box cursor on NS
    
    * src/nsterm.m (ns_draw_window_cursor): Fix verbatim
    translations from X.
---
 src/nsterm.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index fef7f0dc6c..8206203333 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3079,7 +3079,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row 
*glyph_row,
       break;
     case HOLLOW_BOX_CURSOR:
       draw_phys_cursor_glyph (w, glyph_row, DRAW_NORMAL_TEXT);
-      [NSBezierPath strokeRect: r];
+
+      /* This works like it does in PostScript, not X Windows.  */
+      [NSBezierPath strokeRect: NSInsetRect (r, 0.5, 0.5)];
       break;
     case HBAR_CURSOR:
       NSRectFill (r);



reply via email to

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