aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-11-05 12:03:17 +0200
committerEli Zaretskii2010-11-05 12:03:17 +0200
commit28118eb6e58a8461e2deef53b68fea513eaef825 (patch)
tree657015742b2f15fd87145c8929db1cfe63a0e481 /src
parentcf482c50792a60e9fa015f4cb95a8ff1cbb5e108 (diff)
downloademacs-28118eb6e58a8461e2deef53b68fea513eaef825.tar.gz
emacs-28118eb6e58a8461e2deef53b68fea513eaef825.zip
Cleanup fallout from redesigning mouse highlight.
dispextern.h (tty_draw_row_with_mouse_face): Add prototype. xdisp.c (draw_row_with_mouse_face): Don't #ifdef away on MSDOS. Call tty_draw_row_with_mouse_face on MSDOS as well. msdos.c (tty_draw_row_with_mouse_face): Renamed from draw_row_with_mouse_face. Make the argument list identical to the GPM implementation. msdos.h (Display_Info): Restore typedef.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog13
-rw-r--r--src/dispextern.h7
-rw-r--r--src/msdos.c10
-rw-r--r--src/msdos.h2
-rw-r--r--src/xdisp.c8
5 files changed, 27 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0e9d549e54a..db3582db7bd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,16 @@
12010-11-05 Eli Zaretskii <eliz@gnu.org>
2
3 * dispextern.h (tty_draw_row_with_mouse_face): Add prototype.
4
5 * xdisp.c (draw_row_with_mouse_face): Don't #ifdef away on MSDOS.
6 Call tty_draw_row_with_mouse_face on MSDOS as well.
7
8 * msdos.c (tty_draw_row_with_mouse_face): Renamed from
9 draw_row_with_mouse_face. Make the argument list identical with
10 GPM implementation.
11
12 * msdos.h (Display_Info): Restore typedef.
13
12010-11-02 Eli Zaretskii <eliz@gnu.org> 142010-11-02 Eli Zaretskii <eliz@gnu.org>
2 15
3 * term.c: Remove static mouse_face_* variables. All users 16 * term.c: Remove static mouse_face_* variables. All users
diff --git a/src/dispextern.h b/src/dispextern.h
index 37ab2b4c9b6..2ac3918ea98 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3040,12 +3040,13 @@ extern void frame_to_window_pixel_xy (struct window *, int *, int *);
3040extern void note_mouse_highlight (struct frame *, int, int); 3040extern void note_mouse_highlight (struct frame *, int, int);
3041extern void x_clear_window_mouse_face (struct window *); 3041extern void x_clear_window_mouse_face (struct window *);
3042extern void cancel_mouse_face (struct frame *); 3042extern void cancel_mouse_face (struct frame *);
3043extern int clear_mouse_face (Display_Info *); 3043extern int clear_mouse_face (Mouse_HLInfo *);
3044extern void show_mouse_face (Display_Info *, enum draw_glyphs_face); 3044extern void show_mouse_face (Mouse_HLInfo *, enum draw_glyphs_face);
3045extern int cursor_in_mouse_face_p (struct window *w); 3045extern int cursor_in_mouse_face_p (struct window *w);
3046extern void draw_row_with_mouse_face (struct window *, int, struct glyph_row *, 3046extern void draw_row_with_mouse_face (struct window *, int, struct glyph_row *,
3047 int, int, enum draw_glyphs_face); 3047 int, int, enum draw_glyphs_face);
3048 3048extern void tty_draw_row_with_mouse_face (struct window *, struct glyph_row *,
3049 int, int, enum draw_glyphs_face);
3049 3050
3050/* Flags passed to try_window. */ 3051/* Flags passed to try_window. */
3051#define TRY_WINDOW_CHECK_MARGINS (1 << 0) 3052#define TRY_WINDOW_CHECK_MARGINS (1 << 0)
diff --git a/src/msdos.c b/src/msdos.c
index 9826beb1721..6593714ba1f 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -948,12 +948,12 @@ popup_activated (void)
948} 948}
949 949
950/* Draw TEXT_AREA glyphs between START and END of glyph row ROW on 950/* Draw TEXT_AREA glyphs between START and END of glyph row ROW on
951 window W, starting at x-position X. X is relative to TEXT_AREA 951 window W. X is relative to TEXT_AREA in W. HL is a face override
952 in W. HL is a face override for drawing the glyphs. */ 952 for drawing the glyphs. */
953void 953void
954draw_row_with_mouse_face (struct window *w, int x, struct glyph_row *row, 954tty_draw_row_with_mouse_face (struct window *w, struct glyph_row *row,
955 int start_hpos, int end_hpos, 955 int start_hpos, int end_hpos,
956 enum draw_glyphs_face hl) 956 enum draw_glyphs_face hl)
957{ 957{
958 struct frame *f = XFRAME (WINDOW_FRAME (w)); 958 struct frame *f = XFRAME (WINDOW_FRAME (w));
959 struct tty_display_info *tty = FRAME_TTY (f); 959 struct tty_display_info *tty = FRAME_TTY (f);
diff --git a/src/msdos.h b/src/msdos.h
index 7b50abe31e1..fe9964af25e 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -52,6 +52,8 @@ typedef int XRectangle;
52#define PIX_TYPE unsigned long 52#define PIX_TYPE unsigned long
53#define XDISPLAY 53#define XDISPLAY
54 54
55typedef struct tty_display_info Display_Info;
56
55extern struct tty_display_info the_only_display_info; 57extern struct tty_display_info the_only_display_info;
56 58
57#define FRAME_X_DISPLAY(f) ((Display *) 0) 59#define FRAME_X_DISPLAY(f) ((Display *) 0)
diff --git a/src/xdisp.c b/src/xdisp.c
index 73dd7452ad0..275f762caa8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -23614,9 +23614,8 @@ x_clear_cursor (struct window *w)
23614 23614
23615#endif /* HAVE_WINDOW_SYSTEM */ 23615#endif /* HAVE_WINDOW_SYSTEM */
23616 23616
23617/* Implementation of draw_row_with_mouse_face for GUI sessions and 23617/* Implementation of draw_row_with_mouse_face for GUI sessions, GPM,
23618 GPM. MSDOS has its own implementation on msdos.c. */ 23618 and MSDOS. */
23619#ifndef MSDOS
23620void 23619void
23621draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row, 23620draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row,
23622 int start_hpos, int end_hpos, 23621 int start_hpos, int end_hpos,
@@ -23629,11 +23628,10 @@ draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row,
23629 return; 23628 return;
23630 } 23629 }
23631#endif 23630#endif
23632#ifdef HAVE_GPM 23631#if defined (HAVE_GPM) || defined (MSDOS)
23633 tty_draw_row_with_mouse_face (w, row, start_hpos, end_hpos, draw); 23632 tty_draw_row_with_mouse_face (w, row, start_hpos, end_hpos, draw);
23634#endif 23633#endif
23635} 23634}
23636#endif /* not MSDOS */
23637 23635
23638/* EXPORT: 23636/* EXPORT:
23639 Display the active region described by mouse_face_* according to DRAW. */ 23637 Display the active region described by mouse_face_* according to DRAW. */