Commit 28118eb6 authored by Eli Zaretskii's avatar Eli Zaretskii

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.
parent cf482c50
2010-11-05 Eli Zaretskii <eliz@gnu.org>
* 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 with
GPM implementation.
* msdos.h (Display_Info): Restore typedef.
2010-11-02 Eli Zaretskii <eliz@gnu.org>
* term.c: Remove static mouse_face_* variables. All users
......
......@@ -3040,12 +3040,13 @@ extern void frame_to_window_pixel_xy (struct window *, int *, int *);
extern void note_mouse_highlight (struct frame *, int, int);
extern void x_clear_window_mouse_face (struct window *);
extern void cancel_mouse_face (struct frame *);
extern int clear_mouse_face (Display_Info *);
extern void show_mouse_face (Display_Info *, enum draw_glyphs_face);
extern int clear_mouse_face (Mouse_HLInfo *);
extern void show_mouse_face (Mouse_HLInfo *, enum draw_glyphs_face);
extern int cursor_in_mouse_face_p (struct window *w);
extern void draw_row_with_mouse_face (struct window *, int, struct glyph_row *,
int, int, enum draw_glyphs_face);
extern void tty_draw_row_with_mouse_face (struct window *, struct glyph_row *,
int, int, enum draw_glyphs_face);
/* Flags passed to try_window. */
#define TRY_WINDOW_CHECK_MARGINS (1 << 0)
......
......@@ -948,12 +948,12 @@ popup_activated (void)
}
/* Draw TEXT_AREA glyphs between START and END of glyph row ROW on
window W, starting at x-position X. X is relative to TEXT_AREA
in W. HL is a face override for drawing the glyphs. */
window W. X is relative to TEXT_AREA in W. HL is a face override
for drawing the glyphs. */
void
draw_row_with_mouse_face (struct window *w, int x, struct glyph_row *row,
int start_hpos, int end_hpos,
enum draw_glyphs_face hl)
tty_draw_row_with_mouse_face (struct window *w, struct glyph_row *row,
int start_hpos, int end_hpos,
enum draw_glyphs_face hl)
{
struct frame *f = XFRAME (WINDOW_FRAME (w));
struct tty_display_info *tty = FRAME_TTY (f);
......
......@@ -52,6 +52,8 @@ typedef int XRectangle;
#define PIX_TYPE unsigned long
#define XDISPLAY
typedef struct tty_display_info Display_Info;
extern struct tty_display_info the_only_display_info;
#define FRAME_X_DISPLAY(f) ((Display *) 0)
......
......@@ -23614,9 +23614,8 @@ x_clear_cursor (struct window *w)
#endif /* HAVE_WINDOW_SYSTEM */
/* Implementation of draw_row_with_mouse_face for GUI sessions and
GPM. MSDOS has its own implementation on msdos.c. */
#ifndef MSDOS
/* Implementation of draw_row_with_mouse_face for GUI sessions, GPM,
and MSDOS. */
void
draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row,
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,
return;
}
#endif
#ifdef HAVE_GPM
#if defined (HAVE_GPM) || defined (MSDOS)
tty_draw_row_with_mouse_face (w, row, start_hpos, end_hpos, draw);
#endif
}
#endif /* not MSDOS */
/* EXPORT:
Display the active region described by mouse_face_* according to DRAW. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment