emacs-diffs
[Top][All Lists]
Advanced

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

master 561197e 2/2: Fix last change for DOS_NT systems


From: Eli Zaretskii
Subject: master 561197e 2/2: Fix last change for DOS_NT systems
Date: Fri, 22 Jan 2021 07:17:42 -0500 (EST)

branch: master
commit 561197e519c5adc33622c2e5519693d270f6262b
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix last change for DOS_NT systems
    
    * src/term.c (tty_draw_row_with_mouse_face)
    (tty_write_glyphs_with_face): Don't define on MSDOS and WINDOWSNT,
    as those have their own implementations of that.
---
 src/term.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/term.c b/src/term.c
index 37c06a5..1059b06 100644
--- a/src/term.c
+++ b/src/term.c
@@ -790,6 +790,8 @@ tty_write_glyphs (struct frame *f, struct glyph *string, 
int len)
   cmcheckmagic (tty);
 }
 
+#ifndef DOS_NT
+
 static void
 tty_write_glyphs_with_face (register struct frame *f, register struct glyph 
*string,
                            register int len, register int face_id)
@@ -846,6 +848,8 @@ tty_write_glyphs_with_face (register struct frame *f, 
register struct glyph *str
   cmcheckmagic (tty);
 }
 
+#endif
+
 /* An implementation of insert_glyphs for termcap frames. */
 
 static void
@@ -2377,7 +2381,9 @@ frame's terminal). */)
                               Mouse
  ***********************************************************************/
 
-/* Implementation of draw_row_with_mouse_face for TTY/GPM.  */
+#ifndef DOS_NT
+
+/* Implementation of draw_row_with_mouse_face for TTY/GPM and macOS.  */
 void
 tty_draw_row_with_mouse_face (struct window *w, struct glyph_row *row,
                              int start_hpos, int end_hpos,
@@ -2409,6 +2415,8 @@ tty_draw_row_with_mouse_face (struct window *w, struct 
glyph_row *row,
   cursor_to (f, save_y, save_x);
 }
 
+#endif
+
 #ifdef HAVE_GPM
 
 void



reply via email to

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